Vulnerabilities · 2021 · Owasp
CVE-2021-23899
Owasp Json-sanitizer vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Json-sanitizer. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Owasp Json-sanitizer runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/OWASP/json-sanitizer/commit/a37f594f7378a1c76b3283e0dab9e1ab1dc0247e · Patch
- github.com/OWASP/json-sanitizer/compare/v1.2.1...v1.2.2 · Patch
- groups.google.com/g/json-sanitizer-support/c/dAW1AeNMoA0 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-23899
- cve.org/CVERecord?id=CVE-2021-23899
More vulnerabilities in Owasp products
CVE-2025-66022CVE-2025-66021CVE-2025-54571CVE-2025-48866CVE-2024-23686CVE-2024-1019CVE-2023-48171CVE-2023-38285All 41
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.