{"id":"CVE-2021-23899","published":"2021-01-13T15:49:56Z","modified":"2024-08-03T19:14:09Z","title":"OWASP json-sanitizer before 1.2.2 may emit closing SCRIPT tags and CDATA section delimiters for crafted input","vendor":null,"product":null,"tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02093,"percentile":0.82101,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/OWASP/json-sanitizer/compare/v1.2.1...v1.2.2","tags":["x_refsource_MISC"]},{"url":"https://groups.google.com/g/json-sanitizer-support/c/dAW1AeNMoA0","tags":["x_refsource_MISC"]},{"url":"https://github.com/OWASP/json-sanitizer/commit/a37f594f7378a1c76b3283e0dab9e1ab1dc0247e","tags":["x_refsource_MISC"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":16.42}]},"affected":[{"ecosystem":"Maven","package":"com.mikesamuel:json-sanitizer","vulnerableRanges":["<1.2.2"],"patched":["1.2.2"],"from":["GHSA-mm8j-9x84-m9cv"],"provenance":"source"}],"summary":{"text":"The flaw lies in OWASP json-sanitizer before version 1.2.2, where the sanitizer may emit closing SCRIPT tags and CDATA section delimiters for crafted input. An attacker who can supply crafted JSON that is passed through the sanitizer and embedded in a surrounding document can inject arbitrary HTML or XML into that document.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:35Z"},"euvd":{"id":"EUVD-2021-1360","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-13973","published":"2020-06-09","fixed":"1.2.1","kev":false,"link":{"from":"CVE-2020-13973","to":"CVE-2021-23899","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.mikesamuel:json-sanitizer","fromFixed":"1.2.1","toFixed":"1.2.2","daysApart":218}]}},{"cve":"CVE-2021-23899","published":"2021-01-13","fixed":"1.2.2","kev":false},{"cve":"CVE-2021-23900","published":"2021-01-13","fixed":"1.2.2","kev":false}],"package":"Maven:com.mikesamuel:json-sanitizer"}}