CVE Catalog

CVE-2022-32114

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.58%

73th percentile - higher than 73% of all known CVEs

Summary

An unrestricted file upload vulnerability in Strapi 4.1.12's Add New Assets function allows XSS attacks via a crafted PDF file. The project documentation notes that users with Media Library upload permissions can upload PDFs containing JavaScript, and all files in the public assets folder are externally accessible.

Risk Assessment

An attacker can exploit this vulnerability to execute XSS scripts in a victim's browser, potentially leading to session theft, redirects, or other malicious actions within the Strapi application context.

Recommendation

It is recommended to restrict allowed file types to only images, video, and audio (excluding PDF) in Strapi configuration if not required, and to update to the latest Strapi version which may include security fixes.

Other vulnerabilities in Strapi

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS