CVE-2020-27428 Cross-site Scripting in Scratch-Svg-Renderer

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts via crafted sb3 files in the Scratch-Svg-Renderer library, potentially compromising user sessions.

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-27428?

CVE-2020-27428 is a medium-severity cross-site scripting vulnerability in n/a, published on 5 Jan 2022. 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

A DOM-based cross-site scripting (XSS) vulnerability in Scratch-Svg-Renderer v0.2.0 allows attackers to execute arbitrary web scripts or HTML via a crafted sb3 file.

Weakness: CWE-79

Which versions are affected by CVE-2020-27428?

2 open source packages ship an affected version, including scratch-svg-renderer. It affects 1 product.

PackageAffectedFixed in
scratch-svg-renderer npmAll versions to 0.2.0None
scratch-svg-renderer npmAll versions to 0.2.0None

Products include Mit Scratch-Svg-Renderer.

How do I fix CVE-2020-27428?

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

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

Sources

Also known as GHSA-h3vq-wv8j-36gw.

Is CVE-2020-27428 in your software?

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

Check your SBOMs for free