{"id":"CVE-2021-23899","aliases":["CVE-2021-23899","GHSA-mm8j-9x84-m9cv"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary code injection in json-sanitizer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"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.&#xa0;Esto permite a un atacante inyectar HTML o XML arbitrario en documentos insertados","source":"nvd"}],"published":"2021-01-13T15:49:56.000Z","modified":"2026-06-17T03:39:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-611"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.2"}],"ecosystem":"Maven","package":"com.mikesamuel:json-sanitizer","purl":"pkg:maven/com.mikesamuel/json-sanitizer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.2"}],"vendor":"owasp","product":"json-sanitizer","cpe":"cpe:2.3:a:owasp:json-sanitizer:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OWASP/json-sanitizer/compare/v1.2.1...v1.2.2","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://groups.google.com/g/json-sanitizer-support/c/dAW1AeNMoA0","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OWASP/json-sanitizer/commit/a37f594f7378a1c76b3283e0dab9e1ab1dc0247e","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23899","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23899","url":"https://www.cve.org/CVERecord?id=CVE-2021-23899","licence":"CVE Terms of Use","modified":"2024-08-03T19:14:09.335Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mm8j-9x84-m9cv","url":"https://github.com/advisories/GHSA-mm8j-9x84-m9cv","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:13.858Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23899","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23899","licence":"Public domain","modified":"2026-06-17T03:39:00.263Z"}],"updatedAt":"2026-11-25T22:57:59.359Z","epss":{"score":0.02093,"percentile":0.8218,"date":"2026-12-01T12:00:22.000Z"}}