CVE-2021-3977 Cross-site Scripting (XSS) - Stored in invoiceninja/invoiceninja

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
hillelcoren/invoice-ninja PackagistAll versions5.3.35
hillelcoren/invoice-ninja PackagistAll versions5.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.

Sources

Also known as GHSA-xg6r-5gx4-qxjm.

Is CVE-2021-3977 in your software?

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

Check your SBOMs for free