CVE-2022-32114 Strapi 4.1.12 Cross-site Scripting via crafted file
Attackers can upload malicious PDFs to trigger XSS, though the vendor notes this requires specific permissions and public asset access.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-32114?
CVE-2022-32114 is a high-severity vulnerability in n/a, published on 13 Jul 2022. Any signed-in user can exploit it over the network, with no action from the victim.
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.
Weakness: CWE-434
Which versions are affected by CVE-2022-32114?
2 open source packages ship an affected version, including @strapi/strapi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@strapi/strapi npm | All versions to 4.1.12 | None |
@strapi/strapi npm | All versions to 4.1.12 | None |
Products include Strapi Strapi.
How do I fix CVE-2022-32114?
No fix has been published for CVE-2022-32114 yet. Limit exposure of the affected software until one is available.
Is CVE-2022-32114 being exploited?
There is no known exploitation of CVE-2022-32114 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2023-22894 Strapi Cleartext Storage of Sensitive Information
- CVE-2023-22621 Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin
- CVE-2022-27263 Unrestricted Upload of File with Dangerous Type in Strapi
- CVE-2020-27664 Authorization bypass in Strapi
- CVE-2019-18818 Strapi allows unauthenticated attacker to reset admin password without valid reset token
Sources
Also known as GHSA-4vm8-j95f-j6v5.