Live threats

All CVEs / Owasp

CVE-2021-23899Owasp Json-sanitizer

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Jan 13, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-611
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Json-sanitizer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.mikesamuel:json-sanitizer < 1.2.2 1.2.2 —

Per OSV / GitHub Advisories (GHSA-mm8j-9x84-m9cv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
owaspjson-sanitizer< 1.2.2

Official sources

References

Links published by the sources. Open them with care.