CVE-2021-42940 Cross-site scripting in n/a

Critical 9.9 Published Updated

An attacker can execute arbitrary JavaScript in the victim's browser by uploading a malicious SVG file to the attachment handler.

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-2021-42940?

CVE-2021-42940 is a critical cross-site scripting vulnerability in n/a, published on 11 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A Cross Site Scripting (XSS) vulnerability exists in Projeqtor 9.3.1 via /projeqtor/tool/saveAttachment.php, which allows an attacker to upload a SVG file containing malicious JavaScript code.

Weakness: CWE-79

Which versions are affected by CVE-2021-42940?

It affects 1 product.

Products include Projeqtor Projeqtor.

How do I fix CVE-2021-42940?

No fix has been published for CVE-2021-42940 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-42940 being exploited?

There is no known exploitation of CVE-2021-42940 in the wild and no public exploit code.

Sources

Also known as GHSA-qjr7-64vh-gjxw.

Is CVE-2021-42940 in your software?

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

Check your SBOMs for free