SecurityContext

CVE-2026-22707: Strapi - Stored XSS

  • Cve: CVE-2026-22707
  • Name: Strapi - Stored XSS
  • 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.
  • Impact: Authenticated users can upload malicious files that execute JavaScript in admin origin, enabling admin session hijack and unauthorized admin actions.
  • Remediation: Update to version 5.33.3 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: stored_xss, privilege_escalation
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated with Content API upload permission
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00195
  • Epss percentile: 0.09186
  • Assignee: [email protected]
  • Published at: 2026-05-14T19:16:30Z
  • Age in days: 194
  • Modified at: 2026-10-26T14:10:00Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-22707
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type

Hackerone

  • Reports: 2
  • Rank: 3806

References

UrlSourceTags
https://github.com/strapi/strapi/security/advisories/GHSA-pcw7-5633-82vvnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
strapi:strapi< 5.33.3nonvd/v1/products/strapi/strapi

Projects

RepositoryLink kindsIndexedUrl
strapi/strapipackage, security_advisoryyes/v1/repositories/strapi/strapi

Index

  • Repositories: 1
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 2
  • Exposed hosts: 27642
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since