CVE-2021-3977 Cross-site Scripting (XSS) - Stored in invoiceninja/invoiceninja
Attackers can inject malicious scripts into Invoice Ninja, 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
- Not needed
- Fix
- Available
What is CVE-2021-3977?
CVE-2021-3977 is a medium-severity cross-site scripting vulnerability in invoiceninja/invoiceninja, published on 24 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
invoiceninja is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Weakness: CWE-79
Which versions are affected by CVE-2021-3977?
2 open source packages ship an affected version, including hillelcoren/invoice-ninja. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
hillelcoren/invoice-ninja Packagist | All versions | 5.3.35 |
hillelcoren/invoice-ninja Packagist | All versions | 5.3.35 |
Products include Invoiceninja Invoice Ninja.
How do I fix CVE-2021-3977?
Upgrade hillelcoren/invoice-ninja to 5.3.35 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-3977 being exploited?
There is no known exploitation of CVE-2021-3977 in the wild and no public exploit code.
Other vulnerabilities in invoiceninja/invoiceninja
- CVE-2021-33898 Deserialization in n/a
- CVE-2026-29925 Server-side request forgery in n/a
- CVE-2026-33628 Invoice Ninja Denylist Bypass may Lead to Stored XSS via Invoice Line Items
- CVE-2026-33742 Invoice Ninja has Stored XSS via Markdown HTML Injection in Product Notes
- CVE-2017-1000466 Cross-site scripting in n/a
Sources
Also known as GHSA-xg6r-5gx4-qxjm.