Security mailing lists by PureSourceCode

CVE-2020-13973

MEDIUM 6.1CVSS 3.1

Cross-site scripting in json-sanitizer

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.

Published
9 Jun 2020
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-g8jj-899q-8x3j
Sources
NVDJSONOSV GHSA-g8jj-899q-8x3jJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD owasp json-sanitizer
cpe:2.3:a:owasp:json-sanitizer:*:*:*:*:*:*:*:*
< 1.2.1 1.2.1
OSV Maven com.mikesamuel:json-sanitizer < 1.2.1 1.2.1

References

History

  • 25 Nov 2026 20:31 UTC · NVD: first stored (published 9 Jun 2020)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Feb 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.