CVE-2026-22707
Strapi Upload Plugin MIME Validation Bypass via Content API
Also known as GHSA-pcw7-5633-82vv
Mitigation
- Upgrade @strapi/upload to 5.33.3 or later.
Who should check
- Projects that depend on npm package @strapi/upload (< 5.33.3)
- Anyone running strapi < 5.33.3
- Anyone running @strapi/upload < 5.33.3
Vulnerability facts
- Affected
- @strapi/upload < 5.33.3
- Fixed in
- 5.33.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-434, CWE-693
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @strapi/upload | < 5.33.3 | 5.33.3 | osv |
| strapi | < 5.33.3 | — | cvelist |
| @strapi/upload | < 5.33.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-22707. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-22707.md Affected: @strapi/upload < 5.33.3 Fixed in: 5.33.3 Steps: 1. Search this machine and project for @strapi/upload (npm), strapi, @strapi/upload: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-22707 being exploited?
There is no confirmed exploitation: CVE-2026-22707 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-22707?
Medium: CVSS 5.3 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-22707?
@strapi/upload < 5.33.3.
Is there a fix for CVE-2026-22707?
Yes. Fixed in 5.33.3. Upgrade @strapi/upload to 5.33.3 or later.
How do I check if I'm affected by CVE-2026-22707?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.