{"id":"CVE-2020-13973","aliases":["CVE-2020-13973","GHSA-g8jj-899q-8x3j"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting in json-sanitizer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"OWASP json-sanitizer versiones anteriores a 1.2.1, permite un ataque de tipo XSS. Un atacante que controla una subcadena de la entrada JSON y controla otra subcadena adyacente a un elemento SCRIPT en el que la salida es insertada como JavaScript, puede confundir el analizador HTML en cuanto a dónde termina el elemento SCRIPT y causar un contenido no script para ser interpretado como JavaScript","source":"nvd"}],"published":"2020-06-09T03:51:10.000Z","modified":"2026-06-17T02:54:02.260Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.1"}],"ecosystem":"Maven","package":"com.mikesamuel:json-sanitizer","purl":"pkg:maven/com.mikesamuel/json-sanitizer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.1"}],"vendor":"owasp","product":"json-sanitizer","cpe":"cpe:2.3:a:owasp:json-sanitizer:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OWASP/json-sanitizer/pull/20","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13973","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-13973","url":"https://www.cve.org/CVERecord?id=CVE-2020-13973","licence":"CVE Terms of Use","modified":"2024-08-04T12:32:14.557Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g8jj-899q-8x3j","url":"https://github.com/advisories/GHSA-g8jj-899q-8x3j","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:24.817Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-13973","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13973","licence":"Public domain","modified":"2026-06-17T02:54:02.260Z"}],"updatedAt":"2026-11-25T22:57:52.767Z","epss":{"score":0.01123,"percentile":0.67168,"date":"2026-12-01T12:00:22.000Z"}}