{"id":"CVE-2026-22707","published":"2026-05-14T18:40:22Z","modified":"2026-05-14T19:40:11Z","title":"Strapi Upload Plugin MIME Validation Bypass via Content API","vendor":"strapi","product":"strapi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00195,"percentile":0.09417,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/strapi/strapi/security/advisories/GHSA-pcw7-5633-82vv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.88},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"strapi","affectedVersions":[{"vendor":"strapi","product":"strapi","versions":["< 5.33.3"]},{"vendor":"strapi","product":"@strapi/upload","versions":["< 5.33.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-14T19:39:53.488227Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@strapi/upload","vulnerableRanges":["<5.33.3"],"patched":["5.33.3"],"from":["GHSA-pcw7-5633-82vv"],"provenance":"source"}],"summary":{"text":"Strapi's Upload plugin, prior to version 5.33.3, fails to enforce the administrator-configured MIME type allow and deny lists on its Content API upload and replace endpoints, although the same restrictions apply on the Admin Panel upload path. An attacker with a Content API account that holds upload permission, and who can reach the Strapi instance over the network, can upload disallowed file types such as HTML or SVG, which, when served from the same origin as the admin panel (the default) and opened by an administrator, can run JavaScript in the admin origin and hijack an admin session.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:24Z"},"euvd":{"id":"EUVD-2026-30361","exploited":false,"provenance":"source"}}