Vulnerability · Published Jul 13, 2022 · Assigned by mitre

CVE-2022-32114

High 8.8

In plain English

A high-severity security flaw in the @strapi/strapi package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS NVD)8.8High
Exploit odds (30 days)2.0%top 19.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

An unrestricted file upload vulnerability in the Add New Assets function of Strapi 4.1.12 allows attackers to conduct XSS attacks via a crafted PDF file. NOTE: the project documentation suggests that a user with the Media Library "Create (upload)" permission is supposed to be able to upload PDF files containing JavaScript, and that all files in a public assets folder are accessible to the outside world (unless the filename begins with a dot character). The administrator can choose to allow only image, video, and audio files (i.e., not PDF) if desired.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@strapi/strapino fix listedGHSA-4vm8-j95f-j6v5

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References