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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.mikesamuel:json-sanitizer | 1.2.1 | GHSA-g8jj-899q-8x3j |
Affected products (as reported)
References
- https://github.com/OWASP/json-sanitizer/pull/20 x_refsource_MISC