Vulnerability · Published Jun 9, 2020 · Assigned by mitre

CVE-2020-13973

Medium 6.1

In plain English

A medium-severity security flaw in the com.mikesamuel:json-sanitizer package (Maven). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)1.1%top 33.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavencom.mikesamuel:json-sanitizer1.2.1GHSA-g8jj-899q-8x3j

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References