CVE-2020-13973Owasp Json-sanitizer
Medium 6.1 No auth needed
Follow: this CVE · Owasp · Owasp Json-sanitizer We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 67
- Auth required
- No
- Published
- Jun 9, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Json-sanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | com.mikesamuel:json-sanitizer |
< 1.2.1 |
1.2.1 |
— |
Per OSV / GitHub Advisories (GHSA-g8jj-899q-8x3j). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| owasp | json-sanitizer | < 1.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory