Live threats

All CVEs / Owasp

CVE-2020-13973Owasp Json-sanitizer

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.1%
probability of exploitation in 30 days · percentile 67
Auth required
No
Published
Jun 9, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

OWASP json-sanitizer before 1.2.1 allows XSS. An attacker who controls a substring of the input JSON, and controls another substring adjacent to a SCRIPT element in which the output is embedded as JavaScript, may be able to confuse the HTML parser as to where the SCRIPT element ends, and cause non-script content to be interpreted as JavaScript.

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.1 1.2.1 —

Per OSV / GitHub Advisories (GHSA-g8jj-899q-8x3j). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
owaspjson-sanitizer< 1.2.1

Official sources

References

Links published by the sources. Open them with care.