Skip to content
OpenAdvisories
Medium · 4.6 Public exploit CVE-2022-32114 EUVD-2022-6232GHSA-4vm8-j95f-j6v5

Strapi 4.1.12 Cross-site Scripting via crafted file

Published Jul 13, 2022 · Updated Feb 13, 2025 · Assigned by mitre

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.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • bypazs/CVE-2022-32114 ★ 1 · May 29, 2022

    An unrestricted file upload vulnerability in the Add New Assets function of Strapi v4.1.12 allows attackers to execute arbitrary code via a crafted file.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @strapi/strapi <= 4.1.12 — GHSA-4vm8-j95f-j6v5

References