CVE-2021-23899
9.8critical
Arbitrary code injection in json-sanitizer
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 2.09% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-mm8j-9x84-m9cv
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| com.mikesamuel:json-sanitizer (Maven) | before 1.2.2 | GitHub Advisory Database |
| owasp json-sanitizer | before 1.2.2 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
OWASP json-sanitizer versiones anteriores a 1.2.2, puede emitir etiquetas SCRIPT de cierre y delimitadores de sección CDATA para una entrada diseñada. Esto permite a un atacante inyectar HTML o XML arbitrario en documentos insertados
References
| https://github.com/OWASP/json-sanitizer/compare/v1.2.1...v1.2.2 | patch, third-party-advisory, web | |
| https://groups.google.com/g/json-sanitizer-support/c/dAW1AeNMoA0 | third-party-advisory, web | |
| https://github.com/OWASP/json-sanitizer/commit/a37f594f7378a1c76b3283e0dab9e1ab1dc0247e | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23899 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23899 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mm8j-9x84-m9cv changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-23899 changed 2026-06-17 | Public domain |