XSS in Thephpleague Commonmark
CVE-2026-71478
league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 1.5.0 until 2.9.0, the AttributesExtension's href and src unsafe-link filter can be bypassed by embedding control bytes, such as a tab, carriage return, line feed, or leading C0 control character, in a javascript: URL that browsers discard before parsing the scheme, causing the browser to still execute the script even when the unsafe-link filter is enabled. This issue is fixed in 2.9.0.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.004 (29.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 29th percentile — 29.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Thephpleague Commonmark — versions >= 1.5.0, <= 2.8.3
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-71478?
- CVE-2026-71478 is a medium-severity vulnerability in Thephpleague Commonmark, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2026-08-06.
- How severe is CVE-2026-71478?
- Medium severity. CVSS v3 base score is 6.1 out of 10.