GHSA-g8jj-899q-8x3j

Suggest an improvement
Source
https://github.com/advisories/GHSA-g8jj-899q-8x3j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-g8jj-899q-8x3j/GHSA-g8jj-899q-8x3j.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-g8jj-899q-8x3j
Aliases
Published
2022-02-10T23:04:13Z
Modified
2023-11-01T04:51:51.308927Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Cross-site scripting in json-sanitizer
Details

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.

Database specific
{
    "nvd_published_at": "2020-06-09T04:15:00Z",
    "github_reviewed_at": "2021-05-13T19:52:04Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

Maven / com.mikesamuel:json-sanitizer

Package

Name
com.mikesamuel:json-sanitizer
View open source insights on deps.dev
Purl
pkg:maven/com.mikesamuel/json-sanitizer

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.1

Affected versions

1.*

1.0
1.1
1.2.0