CVE-2021-23899
JSON

9.8critical

Arbitrary code injection in json-sanitizer

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
2.09% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-mm8j-9x84-m9cv

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
com.mikesamuel:json-sanitizer (Maven)before 1.2.2GitHub Advisory Database
owasp json-sanitizerbefore 1.2.2NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

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. Esto permite a un atacante inyectar HTML o XML arbitrario en documentos insertados

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23899 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-mm8j-9x84-m9cv changed 2023-11-08CC-BY-4.0
NVDCVE-2021-23899 changed 2026-06-17Public domain