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.
Metrics
CVSS 3.1 9.6/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | scratch-svg-renderer | >= unspecified, < 0.2.0-prerelease.20201019174008 |
References
- https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497Third Party Advisory
- https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497Third Party Advisory
Timeline
- Published
- Oct 21, 2020
- Last modified
- Jun 17, 2026
- NVD status
- Modified