SCA: security update for @strapi/upload (GHSA-pcw7-5633-82vv)

medium Tenable Self-Hosted Container Security Plugin ID 441836

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-22707)

Solution

Update the @strapi/upload library and its related packages to version 5.33.3 or later.

See Also

https://github.com/advisories/GHSA-pcw7-5633-82vv

Plugin Details

Severity: Medium

ID: 441836

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 5/14/2026

Updated: 7/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.1

Percentile: 7.7

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.1

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

CVSS Score Source: CVE-2026-22707

CVSS v3

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 5.3

Threat Score: 1.3

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/14/2026

Vulnerability Publication Date: 5/14/2026

Reference Information

CVE: CVE-2026-22707