{"id":"GHSA-j977-g5vj-j27g","summary":"Cross-Site Scripting in scratch-svg-renderer","details":"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.","aliases":["CVE-2020-7750","SNYK-JS-SCRATCHSVGRENDERER-1020497"],"modified":"2026-09-10T03:48:35.465333541Z","published":"2020-11-09T14:21:17Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-11-09T14:09:20Z","nvd_published_at":null,"cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7750"},{"type":"WEB","url":"https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497"}],"affected":[{"package":{"name":"scratch-svg-renderer","ecosystem":"npm","purl":"pkg:npm/scratch-svg-renderer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.0-prerelease.20201019174008"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.2.0-prerelease.20201016121710","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/11/GHSA-j977-g5vj-j27g/GHSA-j977-g5vj-j27g.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}