XXE in Owasp Json-Sanitizer
CVE-2021-23899
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.
Vulnerability class: XXE (XML External Entity)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.021, 81.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 6 other repositories (ARPSyndicate/cvemon, CodeIntelligenceTesting/java-example, CodeIntelligenceTesting/java-example-old, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/OWASP/json-sanitizer/compare/v1.2.1...v1.2.2 (Patch, Third Party Advisory)
- groups.google.com/g/json-sanitizer-support/c/dAW1AeNMoA0 (Third Party Advisory)
- github.com/OWASP/json-sanitizer/commit/a37f594f7378a1c76b3283e0dab9e1ab1dc0247e (Patch, Third Party Advisory)