CVE-2021-23411 Cross-site Scripting (XSS)

Medium 5.4 Published Updated

An attacker can inject malicious JavaScript into anchor tags via input, leading to code execution upon user interaction in applications using this library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-23411?

CVE-2021-23411 is a medium-severity cross-site scripting vulnerability in anchorme, published on 21 Jul 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the main functionality. It accepts input that can result in the output (an anchor a tag) containing undesirable Javascript code that can be executed upon user interaction.

Weakness: CWE-79

Which versions are affected by CVE-2021-23411?

2 open source packages ship an affected version, including anchorme. It affects 1 product.

PackageAffectedFixed in
anchorme npmAll versions to 2.1.2None
anchorme npmAll versions to 2.1.2None

Products include Anchorme Project Anchorme.

How do I fix CVE-2021-23411?

No fix has been published for CVE-2021-23411 yet. Limit exposure of the affected software until one is available.

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

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

Sources

Also known as GHSA-w4wq-rvmq-77x7.

Is CVE-2021-23411 in your software?

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

Check your SBOMs for free