CVE-2021-4172 Cross-site Scripting (XSS) - Stored in star7th/showdoc

Medium 6.5 Published Updated

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

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-4172?

CVE-2021-4172 is a medium-severity cross-site scripting vulnerability in star7th/showdoc, published on 22 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Cross-site Scripting (XSS) - Stored in GitHub repository star7th/showdoc prior to 2.10.2.

Weakness: CWE-79

Which versions are affected by CVE-2021-4172?

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

PackageAffectedFixed in
showdoc/showdoc PackagistAll versions2.10.2
showdoc/showdoc PackagistAll versions2.10.2

Products include Showdoc Showdoc.

How do I fix CVE-2021-4172?

Upgrade showdoc/showdoc to 2.10.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-4172 being exploited?

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

Sources

Also known as GHSA-7x22-pmw5-66mq.

Is CVE-2021-4172 in your software?

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

Check your SBOMs for free