CVE-2020-11887 XSS in svg2png (NPM package)

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript and trigger SSRF by crafting malicious SVG documents processed by the svg2png 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-2020-11887?

CVE-2020-11887 is a medium-severity cross-site scripting vulnerability in n/a, published on 17 Apr 2020. 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

svg2png 4.1.1 allows XSS with resultant SSRF via JavaScript inside an SVG document.

Weakness: CWE-79

Which versions are affected by CVE-2020-11887?

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

PackageAffectedFixed in
svg2png npmAll versions to 4.1.1None
svg2png npmAll versions to 4.1.1None

Products include Svg2png Project Svg2png.

How do I fix CVE-2020-11887?

No fix has been published for CVE-2020-11887 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-2020-11887 being exploited?

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

Sources

Also known as GHSA-mpp5-2x55-49xw.

Is CVE-2020-11887 in your software?

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

Check your SBOMs for free