{"id":"CVE-2020-13973","aliases":["EUVD-2022-1005","GHSA-g8jj-899q-8x3j"],"status":"published","title":"Cross-site scripting in json-sanitizer","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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01123,"percentile":0.66517,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-79"],"published":"2020-06-09T03:51:10Z","modified":"2026-10-20T10:51:49Z","exploits":[{"source":"pocgithub","id":"epicosy/json-sanitizer","title":"epicosy/json-sanitizer","date":"2024-05-31","url":"https://github.com/epicosy/json-sanitizer"},{"source":"pocgithub","id":"shoucheng3/OWASP__json-sanitizer_CVE-2020-13973_1-2-0","title":"shoucheng3/OWASP__json-sanitizer_CVE-2020-13973_1-2-0","date":"2025-08-16","url":"https://github.com/shoucheng3/OWASP__json-sanitizer_CVE-2020-13973_1-2-0"}],"fixes":[{"ecosystem":"Maven","package":"com.mikesamuel:json-sanitizer","fixed_in":["1.2.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.mikesamuel:json-sanitizer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.mikesamuel:json-sanitizer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}],"versions":["1.0","1.1","1.2.0"]}],"products":[{"vendor":"owasp","product":"json-sanitizer"}],"references":[{"url":"https://github.com/OWASP/json-sanitizer/pull/20","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13973","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-g8jj-899q-8x3j"}],"sources":{"cve":[{"id":"CVE-2020-13973","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.","status":"published","published":"2020-06-09T03:51:10Z","modified":"2024-08-04T12:32:14.557Z","updated_at":"2026-11-02T14:35:53.868619Z"}],"euvd":[{"id":"EUVD-2022-1005","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.","status":"published","published":"2020-06-09T03:51:10Z","modified":"2024-08-04T12:32:14Z","updated_at":"2026-11-03T03:07:35.099081Z"}],"ghsa":[{"id":"GHSA-g8jj-899q-8x3j","title":"Cross-site scripting in json-sanitizer","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.","status":"published","published":"2022-02-10T23:04:13Z","modified":"2023-02-01T05:05:44Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:35.781528Z"}],"nvd":[{"id":"CVE-2020-13973","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.","status":"published","published":"2020-06-09T04:15:10.983Z","modified":"2026-06-17T02:54:02.26Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:05.962132Z"}],"osv":[{"id":"CVE-2020-13973","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.","status":"published","published":"2020-06-09T04:15:10.983Z","modified":"2026-10-20T10:51:49.34614709Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:14.418339Z"},{"id":"GHSA-g8jj-899q-8x3j","title":"Cross-site scripting in json-sanitizer","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.","status":"published","published":"2022-02-10T23:04:13Z","modified":"2023-11-08T04:02:24.817935Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.472172Z"}]}}
