CVE-2022-32114 Strapi 4.1.12 Cross-site Scripting via crafted file

High 8.8 Published Updated

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.

PackageAffectedFixed in
@strapi/strapi npmAll versions to 4.1.12None
@strapi/strapi npmAll versions to 4.1.12None

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.

Sources

Also known as GHSA-4vm8-j95f-j6v5.

Is CVE-2022-32114 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free