GitHub Advisoryadvisory · Maven
GHSA-g8jj-899q-8x3j Cross-site scripting in json-sanitizer
MEDIUM
Official page ↗
- Aliases
- CVE-2020-13973
- Ecosystem
- Maven
- Packages
- com.mikesamuel:json-sanitizer
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2021-05-13
Affected packages
• Maven com.mikesamuel:json-sanitizer: < 1.2.1 → fixed in 1.2.1
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.
Related
Alias · CVE (1)
- CVE-2020-13973 OWASP json-sanitizer before 1.2.1 allows XSS. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness