{"id":"CVE-2020-7750","aliases":["EUVD-2020-1459","GHSA-j977-g5vj-j27g","SNYK-JS-SCRATCHSVGRENDERER-1020497"],"status":"published","title":"Cross-site Scripting (XSS)","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.","severity":{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.06125,"percentile":0.935,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-79"],"published":"2020-10-21T16:20:12Z","modified":"2026-10-20T10:54:23Z","exploits":[{"source":"exploitdb","id":"EDB-50079","title":"Scratch Desktop 3.17 - Remote Code Execution","type":"webapps","platform":"multiple","date":"2021-07-02","url":"https://www.exploit-db.com/exploits/50079"}],"fixes":[{"ecosystem":"npm","package":"scratch-svg-renderer","fixed_in":["0.2.0-prerelease.20201019174008"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"scratch-svg-renderer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.2.0-prerelease.20201016121710"},{"fixed":"0.2.0-prerelease.20201019174008"}]}]},{"source":"osv","ecosystem":"npm","package":"scratch-svg-renderer","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.0-prerelease.20201019174008"}]}]}],"products":[{"vendor":"mit","product":"scratch-svg-renderer"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7750","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j977-g5vj-j27g"}],"sources":{"cve":[{"id":"CVE-2020-7750","title":"Cross-site Scripting (XSS)","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.","status":"published","published":"2020-10-21T16:20:12.796Z","modified":"2024-09-16T19:31:46.72Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.787905Z"}],"euvd":[{"id":"EUVD-2020-1459","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.","status":"published","published":"2020-10-21T16:20:12Z","modified":"2024-09-16T19:31:46Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T00:55:21.946733Z"}],"ghsa":[{"id":"GHSA-j977-g5vj-j27g","title":"Cross-Site Scripting in scratch-svg-renderer","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.","status":"published","published":"2020-11-09T14:21:17Z","modified":"2023-01-09T05:03:55Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:07.581563Z"}],"nvd":[{"id":"CVE-2020-7750","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.","status":"published","published":"2020-10-21T17:15:13.343Z","modified":"2026-06-17T03:25:22.763Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:20.704992Z"}],"osv":[{"id":"CVE-2020-7750","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.","status":"published","published":"2020-10-21T17:15:13.343Z","modified":"2026-10-20T10:54:23.991744735Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:17.34531Z"},{"id":"GHSA-j977-g5vj-j27g","title":"Cross-Site Scripting in scratch-svg-renderer","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.","status":"published","published":"2020-11-09T14:21:17Z","modified":"2026-09-10T03:48:35.465333541Z","cvss":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:50.336262Z"}]}}
