CVE-2021-3961 Cross-site Scripting (XSS) - Stored in snipe/snipe-it
Attackers can inject malicious scripts into Snipe-IT asset management fields, potentially stealing user sessions or executing code in victim browsers.
- 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-2021-3961?
CVE-2021-3961 is a high-severity cross-site scripting vulnerability in Snipeitapp Snipe-It, published on 19 Nov 2021. Any signed-in user can exploit it over the 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-3961?
2 open source packages ship an affected version, including snipe/snipe-it. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
snipe/snipe-it Packagist | All versions | 5.3.2 |
snipe/snipe-it Packagist | All versions | 5.3.2 |
Products include Snipeitapp Snipe-It.
How do I fix CVE-2021-3961?
Upgrade snipe/snipe-it to 5.3.2 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-3961 being exploited?
There is no known exploitation of CVE-2021-3961 in the wild and no public exploit code.
Other vulnerabilities in Snipeitapp Snipe-It
- CVE-2025-63601 File upload in n/a
- CVE-2026-37709 Snipe-IT has insecure permissions in file uploads
- CVE-2026-86738 Snipe-IT before 8.7.0 CSS Injection via Custom CSS
- CVE-2026-116199 Snipe-IT before 8.6.3 Authentication Bypass via Google SSO Callback
- CVE-2022-1380 Stored Cross Site Scripting vulnerability in Item name parameter in snipe/snipe-it
Sources
Also known as GHSA-c65v-p733-9796.