GHSA-qx76-c53f-5c7q

Suggest an improvement
Source
https://github.com/advisories/GHSA-qx76-c53f-5c7q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qx76-c53f-5c7q/GHSA-qx76-c53f-5c7q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qx76-c53f-5c7q
Aliases
Published
2022-05-14T01:40:50Z
Modified
2024-02-16T08:16:43Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
PHP League CommonMark vulnerable to Cross-Site Scripting (XSS)
Details

Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18.1 allows remote attackers to insert unsafe URLs into HTML (even if allow_unsafe_links is false) via a newline character (e.g., writing javascript as javascri%0apt).

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-09-12T15:59:43Z",
    "nvd_published_at":  "2018-12-30T05:29:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

Packagist / league/commonmark

Package

Name
league/commonmark
Purl
pkg:composer/league/commonmark

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.15.6
Fixed
0.18.1

Affected versions

0.*
0.15.6
0.15.7
0.16.0
0.17.0
0.17.1
0.17.2
0.17.3
0.17.4
0.17.5
0.18.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qx76-c53f-5c7q/GHSA-qx76-c53f-5c7q.json"