CVE-2020-13973
MEDIUM 6.1CVSS 3.1Cross-site scripting in json-sanitizer
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.
- Published
- 9 Jun 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-g8jj-899q-8x3j
- Sources
- NVDJSONOSV GHSA-g8jj-899q-8x3jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | owasp | json-sanitizercpe:2.3:a:owasp:json-sanitizer:*:*:*:*:*:*:*:* |
< 1.2.1 | 1.2.1 |
| OSV | Maven | com.mikesamuel:json-sanitizer | < 1.2.1 | 1.2.1 |
References
- https://github.com/OWASP/json-sanitizer/pull/20 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-13973 · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 9 Jun 2020)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Feb 2022)