CVE-2022-0372 Cross-site Scripting (XSS) - Stored in crater-invoice/crater

High 7.6 Published Updated

Stored Cross-Site Scripting in Crater Invoice allows attackers to inject malicious scripts, potentially leading to session hijacking or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-0372?

CVE-2022-0372 is a high-severity cross-site scripting vulnerability in crater-invoice/crater, published on 27 Jan 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Cross-site Scripting (XSS) - Stored in Packagist bytefury/crater prior to 6.0.2.

Weakness: CWE-79

Which versions are affected by CVE-2022-0372?

2 open source packages ship an affected version, including bytefury/crater. It affects 1 product.

PackageAffectedFixed in
bytefury/crater PackagistAll versions6.0.0
bytefury/crater PackagistAll versions6.0.0

Products include Craterapp Crater.

How do I fix CVE-2022-0372?

Upgrade bytefury/crater to 6.0.0 or later.

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-0372 being exploited?

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

Sources

Also known as GHSA-6vfw-74wr-3chh.

Is CVE-2022-0372 in your software?

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

Check your SBOMs for free