CVE-2022-21241 Cross-site scripting in CSV+

Critical 9.6 Published Updated

Remote attackers can inject scripts or OS commands via crafted CSV files in the CSV+ library, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-21241?

CVE-2022-21241 is a critical cross-site scripting vulnerability in Plus one CSV+, published on 8 Feb 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Cross-site scripting vulnerability in CSV+ prior to 0.8.1 allows a remote unauthenticated attacker to inject an arbitrary script or an arbitrary OS command via a specially crafted CSV file that contains HTML a tag.

Weakness: CWE-79

Which versions are affected by CVE-2022-21241?

It affects 1 product.

Products include Csv\+ Project Csv\+.

How do I fix CVE-2022-21241?

No fix has been published for CVE-2022-21241 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-2022-21241 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-h95w-c385-8x7j.

Is CVE-2022-21241 in your software?

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

Check your SBOMs for free