XSS in Mit Scratch-Svg-Renderer
CVE-2020-7750
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.6 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.061, 93.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Mit Scratch-Svg-Renderer — versions 0.1.0, 0.2.0
- Scratch-Svg-Renderer — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, ossf-cve-benchmark/CVE-2020-7750). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497 (Third Party Advisory)
- github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395a… (Patch, Third Party Advisory)