# CVE-2020-7750: Cross-site Scripting (XSS)

- Severity: Critical 9.6 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.13%, higher than 93% of CVEs (2026-12-01)
- Published: 2020-10-21T16:20:12.796Z
- Modified: 2026-09-10T03:48:35.465Z
- Also known as: GHSA-j977-g5vj-j27g, SNYK-JS-SCRATCHSVGRENDERER-1020497
- Weaknesses: CWE-79
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- scratch-svg-renderer: from unspecified before 0.2.0-prerelease.20201019174008
- scratch-svg-renderer (npm): before 0.2.0-prerelease.20201019174008
- mit scratch-svg-renderer: 0.1.0; 0.2.0

## Every score

- snyk: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497> (third-party-advisory, web)
- <https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7750> (advisory)

## Sources

- CVE List: [CVE-2020-7750](https://www.cve.org/CVERecord?id=CVE-2020-7750), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-j977-g5vj-j27g](https://github.com/advisories/GHSA-j977-g5vj-j27g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-7750](https://nvd.nist.gov/vuln/detail/CVE-2020-7750), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7750 · Whole record: https://cve.day/CVE-2020-7750.json · Rebuilt by cve.day 2026-11-25T22:57:55.394Z
