CVE-2021-23899: OWASP json-sanitizer - Stored XSS
- Cve: CVE-2021-23899
- Name: OWASP json-sanitizer - Stored XSS
- Description: OWASP json-sanitizer before 1.2.2 may emit closing SCRIPT tags and CDATA section delimiters for crafted input. This allows an attacker to inject arbitrary HTML or XML into embedding documents.
- Impact: Attackers can inject malicious HTML or XML, leading to cross-site scripting or data manipulation in embedding documents.
- Remediation: Update to version 1.2.2 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02093
- Epss percentile: 0.82008
- Assignee: [email protected]
- Published at: 2021-01-13T16:15:14Z
- Age in days: 2141
- Modified at: 2026-06-17T03:39:00Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-23899
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-611 | Improper Restriction of XML External Entity Reference |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/OWASP/json-sanitizer/commit/a37f594f7378a1c76b3283e0dab9e1ab1dc0247e | Patch, Third Party Advisory |
| https://github.com/OWASP/json-sanitizer/compare/v1.2.1...v1.2.2 | Patch, Third Party Advisory |
| https://groups.google.com/g/json-sanitizer-support/c/dAW1AeNMoA0 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| owasp:json-sanitizer | < 1.2.2 | no | nvd | /v1/products/owasp/json-sanitizer |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| OWASP/json-sanitizer | commit, compare | yes | /v1/repositories/OWASP/json-sanitizer |
Index
- Repositories: 2
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts