# CVE-2026-22707: Strapi Upload Plugin MIME Validation Bypass via Content API

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-05-14T13:12:56.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-pcw7-5633-82vv
- Weaknesses: CWE-434, CWE-693
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Strapi is an open source headless content management system. In Strapi versions prior to 5.33.3, the Upload plugin's Content API endpoints did not enforce the administrator-configured MIME type restrictions (`plugin.upload.security.allowedTypes` and `deniedTypes`). The same restrictions were correctly enforced on the Admin Panel upload path. The upload plugin's `enforceUploadSecurity` security check was invoked in the admin upload controller but was missing from the Content API controller. The Content API handlers `uploadFiles` and `replaceFile` (and the `upload` wrapper that dispatches to them) called the underlying upload service directly, bypassing both the magic-byte MIME detection and the configured allow/deny lists. An authenticated user with the Content API upload permission could therefore upload file types the administrator had explicitly disallowed, including HTML and SVG content. In deployments serving uploaded files from the same origin as the admin panel (default), an attacker could upload an HTML or SVG file that, when opened directly by an admin, executed JavaScript in the admin origin, enabling admin-session hijack and authenticated administrative actions against the admin API. The patch in version 5.33.3 introduces a shared `prepareUploadRequest` helper that wraps `enforceUploadSecurity` and is called from both the Content API and admin upload controllers, ensuring identical security policy enforcement on every upload entry point.

(As written by CVE List.)

## Affected

- strapi strapi: < 5.33.3; before 5.33.3
- strapi @strapi/upload: < 5.33.3
- @strapi/upload (npm): before 5.33.3

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/strapi/strapi/security/advisories/GHSA-pcw7-5633-82vv> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22707> (advisory)
- <https://github.com/strapi/strapi> (package)

## Sources

- CVE List: [CVE-2026-22707](https://www.cve.org/CVERecord?id=CVE-2026-22707), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-pcw7-5633-82vv](https://github.com/advisories/GHSA-pcw7-5633-82vv), CC-BY-4.0, modified 2026-05-16
- NVD: [CVE-2026-22707](https://nvd.nist.gov/vuln/detail/CVE-2026-22707), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-22707 · Whole record: https://cve.day/CVE-2026-22707.json · Rebuilt by cve.day 2026-11-25T22:59:21.743Z
