OSV 1.4.0 · github-reviewed · 修改于 2026-05-16 07:44
发布时间
2026-05-14 21:12
GitHub 审查时间
2026-05-14 21:12
NVD 发布时间
2026-05-15 03:16
源文件
advisories/github-reviewed/2026/05/GHSA-pcw7-5633-82vv/GHSA-pcw7-5633-82vv.json
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 (5.3 — Medium)@strapi/upload <=5.33.2In 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 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.
Indicators that an instance running an unpatched version may have been exploited:
/uploads/ with extensions outside the configured allow-list, particularly .html, .htm, .svg, .js, .mjs, .xml, or . Filesystem regex: .xhtml\.(html?|svg|m?js|x?html|xml)$POST /api/upload where the uploaded file's MIME or extension is outside the configured allowedTypestext/html|application/javascript|image/svg\+xml/uploads/*.html or /uploads/*.svg shortly before unexpected administrative actions (user creation, role changes, permission modifications)Reported independently by: