# CVE-2020-13973: Cross-site scripting in json-sanitizer

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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): 1.12%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-06-09T03:51:10.000Z
- Modified: 2026-06-17T02:54:02.260Z
- Also known as: GHSA-g8jj-899q-8x3j
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

OWASP json-sanitizer before 1.2.1 allows XSS. An attacker who controls a substring of the input JSON, and controls another substring adjacent to a SCRIPT element in which the output is embedded as JavaScript, may be able to confuse the HTML parser as to where the SCRIPT element ends, and cause non-script content to be interpreted as JavaScript.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.mikesamuel:json-sanitizer (Maven): before 1.2.1
- owasp json-sanitizer: before 1.2.1

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/OWASP/json-sanitizer/pull/20> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-13973> (advisory)

## Sources

- CVE List: [CVE-2020-13973](https://www.cve.org/CVERecord?id=CVE-2020-13973), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-g8jj-899q-8x3j](https://github.com/advisories/GHSA-g8jj-899q-8x3j), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-13973](https://nvd.nist.gov/vuln/detail/CVE-2020-13973), Public domain, modified 2026-06-17

---

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