CVE-2021-3938 Cross-site Scripting (XSS) - Generic in snipe/snipe-it

Low 3.9 Published Updated

Attackers can inject malicious scripts into Snipe-IT, potentially stealing user sessions or executing code in victim browsers.

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

What is CVE-2021-3938?

CVE-2021-3938 is a low-severity cross-site scripting vulnerability in Snipeitapp Snipe-It, published on 13 Nov 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

snipe-it is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Weakness: CWE-79

Which versions are affected by CVE-2021-3938?

2 open source packages ship an affected version, including snipe/snipe-it. It affects 1 product.

PackageAffectedFixed in
snipe/snipe-it PackagistAll versions5.4.0
snipe/snipe-it PackagistAll versions5.4.0

Products include Snipeitapp Snipe-It.

How do I fix CVE-2021-3938?

Upgrade snipe/snipe-it to 5.4.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-2021-3938 being exploited?

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

All Snipeitapp Snipe-It vulnerabilities

Sources

Also known as GHSA-2cqg-q7jm-j35c.

Is CVE-2021-3938 in your software?

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

Check your SBOMs for free