# CVE-2021-23899

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.2.2 (CNA); fix release not confirmed
- Status: published
- Published: 2021-01-13 · Modified: 2024-08-03
- Aliases: GHSA-mm8j-9x84-m9cv
- Record: https://cvemate.com/vulnerability/CVE-2021-23899 · JSON: https://cvemate.com/vulnerability/CVE-2021-23899/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.093%, percentile 82.279%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- com.mikesamuel json-sanitizer (Maven): \< 1.2.2
- owasp json-sanitizer: \< 1.2.2

## References

- <https://github.com/OWASP/json-sanitizer/compare/v1.2.1...v1.2.2>
- <https://groups.google.com/g/json-sanitizer-support/c/dAW1AeNMoA0>
- <https://github.com/OWASP/json-sanitizer/commit/a37f594f7378a1c76b3283e0dab9e1ab1dc0247e>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23899>

---

Data as of 2026-12-05T09:43:42.147Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
