Findings

CVE-2026-22707

Strapi is an open source headless content management system.

Published May 14, 2026 · updated Jun 17, 2026 · strapi strapi

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 ( and ). The same restrictions were correctly enforced on the Admin Panel upload path. The upload plugin's security check was invoked in the admin upload controller but was missing from the Content API controller. The Content API handlers and (and the 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 helper that wraps and is called from both the Content API and admin upload controllers, ensuring identical security policy enforcement on every upload entry point.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. May 14, 2026 · NIST NVD

    Detected

    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 ( and ). The same restrictions were correctly enforced on the Admin Panel upload path. The upload plugin's security check was invoked in the admin upload controller but was missing from the Con

  2. Jun 17, 2026 · NIST NVD

    Updated

    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 ( and ). The same restrictions were correctly enforced on the Admin Panel upload path. The upload plugin's security check was invoked in the admin upload controller but was missing from the Con

Affected

  • cpe strapi/strapiversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2026-22707

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-22707

    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 ( and ). The same restr

    nvd.nist.gov

References