CVE-2018-20583

Description

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).

Severity
MEDIUM
CVSS v3
6.1
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · source nvd
Exploit chance (EPSS)
1.863%
chance of exploitation in the next 30 days
higher than 79.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2018-12-30Published by the CNA05:00 UTC
  2. 2022-05-14GitHub advisory published (GHSA-qx76-c53f-5c7q)1231 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-qx76-c53f-5c7q, affected packages:

PackageVulnerable versionsFixed in
Packagist league/commonmarkfrom 0.15.6 before 0.18.10.18.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
thephpleague commonmarkfrom 0.15.6 through 0.18.0no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources