{"id":"CVE-2020-7750","published":"2020-10-21T16:20:12Z","modified":"2024-09-16T19:31:46Z","title":"Cross-site Scripting (XSS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.06125,"percentile":0.9361,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497","tags":["x_refsource_MISC"]},{"url":"https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90","tags":["x_refsource_MISC"]}],"priority":{"score":30.4,"factors":[{"name":"EPSS percentile","points":18.72},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.72}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2021-07-02"},"first":{"date":"2021-07-02","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/50079"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"scratch-svg-renderer","versions":[">= unspecified, < 0.2.0-prerelease.20201019174008"]}],"affected":[{"ecosystem":"npm","package":"scratch-svg-renderer","vulnerableRanges":["<0.2.0-prerelease.20201019174008"],"patched":["0.2.0-prerelease.20201019174008"],"from":["GHSA-j977-g5vj-j27g"],"provenance":"source"}],"summary":{"text":"The scratch-svg-renderer package (versions before 0.2.0-prerelease.20201019174008) has a cross-site scripting flaw in its loadString function, which fails to properly escape SVG content, allowing arbitrary elements to be injected into the DOM via _transformMeasurements. An unauthenticated remote attacker can exploit this over the network with low complexity, but only if a user interacts with the crafted content, such as by loading a malicious SVG, and the impact can extend beyond the vulnerable component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:27:31Z"},"euvd":{"id":"EUVD-2020-1459","exploited":false,"provenance":"source"},"exploits":[{"id":50079,"url":"https://www.exploit-db.com/exploits/50079","title":"Scratch Desktop 3.17 - Remote Code Execution","date":"2021-07-02","verified":false,"provenance":"source"}]}