CVE-2020-27428 Cross-site Scripting in Scratch-Svg-Renderer
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.
| Package | Affected | Fixed in |
|---|---|---|
scratch-svg-renderer npm | All versions to 0.2.0 | None |
scratch-svg-renderer npm | All versions to 0.2.0 | None |
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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-h3vq-wv8j-36gw.