CVE-2018-20583Thephpleague Commonmark
Medium 6.1 No auth needed
Follow: this CVE · Thephpleague · Thephpleague Commonmark We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Dec 30, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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).
What to do
- Apply the vendor's security update for Commonmark.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | league/commonmark |
≥ 0.15.6 < 0.18.1 |
0.18.1 |
composer require "league/commonmark:^0.18.1" |
Per OSV / GitHub Advisories (GHSA-qx76-c53f-5c7q). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thephpleague | commonmark | ≥ 0.15.6 ≤ 0.18.0 |
Official sources
References
Links published by the sources. Open them with care.
- commonmark.thephpleague.com Release Notes Third Party Advisory
- github.com Exploit Third Party Advisory
- github.com Release Notes Third Party Advisory