Description
This affects the package scratch-svg-renderer before 0.2.0-prerelease.20201019174008. The loadString function does not escape SVG properly, which can be used to inject arbitrary elements into the DOM via the _transformMeasurements function.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | scratch-svg-renderer | unspecified – < 0.2.0-prerelease.20201019174008 | 0.2.0-prerelease.20201019174008 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 1
- Scratch Desktop 3.17 - Remote Code Execution EDB-50079 · webapps · Jul 2, 2021
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | scratch-svg-renderer | < 0.2.0-prerelease.20201019174008 | 0.2.0-prerelease.20201019174008 | GHSA-j977-g5vj-j27g |