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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-434, CWE-693
- **Aliases:** GHSA-pcw7-5633-82vv
- **Published:** 2026-05-14T13:12:56.000Z
- **Modified:** 2026-10-26T14:10:00.130Z

## 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

## 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

- npm `@strapi/upload`: affected \< 5.33.3; fixed 5.33.3 (osv)
- strapi: \< 5.33.3 (cvelist)
- @strapi/upload: \< 5.33.3 (cvelist)

## Mitigation

- Upgrade @strapi/upload to 5.33.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/strapi/strapi/security/advisories/GHSA-pcw7-5633-82vv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-22707>
- other: <https://github.com/strapi/strapi>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-22707>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pcw7-5633-82vv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-22707> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-22707>
