OWASP json-sanitizer before 1.2.1 allows XSS.
Priority LOW 29CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
EPSS 0.01123 66th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed com.mikesamuel:json-sanitizer (Maven): 1.2.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | com.mikesamuel:json-sanitizer (Maven) | before 1.2.1 | 1.2.1 | Patch available | GHSA-g8jj-899q-8x3j |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- com.mikesamuel:json-sanitizer (Maven) Vendor— Affected before 1.2.1 Fixed in 1.2.1 Patch available GHSA-g8jj-899q-8x3j
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:owasp:json-sanitizer:*:*:*:*:*:*:*:* | before 1.2.1 | Vulnerable | owasp-modsecurity |
- cpe:2.3:a:owasp:json-sanitizer:*:*:*:*:*:*:*:* Versions before 1.2.1 Vulnerable ·owasp-modsecurity
Remediation
- Fix · GHSA-g8jj-899q-8x3j com.mikesamuel:json-sanitizer (Maven) Fixed in 1.2.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-13973
- 2026-10-03 Alias added: GHSA-g8jj-899q-8x3j
References
More owasp-modsecurity Json-sanitizer vulnerabilities
- TI-2021-06251 OWASP json-sanitizer before 1.2.2 may emit closing SCRIPT tags and CDATA section… CVSS 3.1CRITICAL 9.8
- TI-2021-06252 OWASP json-sanitizer before 1.2.2 can output invalid JSON or throw an undeclared… CVSS 3.1HIGH 7.5
Sources
- CVE-2020-13973 · CVE Program
- CVE-2020-13973 · NVD
- FIRST EPSS
- GHSA-g8jj-899q-8x3j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences