Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2020-13973 EUVD-2022-1005GHSA-g8jj-899q-8x3j

Cross-site scripting in json-sanitizer

Published Jun 9, 2020 · Updated Aug 4, 2024 · Assigned by mitre

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.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.mikesamuel:json-sanitizer < 1.2.1 1.2.1 GHSA-g8jj-899q-8x3j

References