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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
shoucheng3/OWASP__json-sanitizer_CVE-2020-13973_1-2-0 ★ 0 · Aug 16, 2025
-
epicosy/json-sanitizer ★ 0 · May 31, 2024
json-sanitizer with CVE-2020-13973
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | com.mikesamuel:json-sanitizer | < 1.2.1 | 1.2.1 | GHSA-g8jj-899q-8x3j |