CVE-2026-71478
published medium CVSS 3.1 · 6.1league/commonmark: AttributesExtension href/src unsafe-link filter bypass via embedded control bytes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| thephpleague | — | commonmark>= 1.5.0, <= 2.8.3 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| thephpleague | commonmark | >= 1.5.0, <= 2.8.3 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-86 CWE-86: Improper Neutralization of Invalid Characters in Identifiers in Web Pages
- CWE-692 CWE-692: Incomplete Denylist to Cross-Site Scripting
References
3Provider assertions
2GitHub_M · cna
league/commonmark: AttributesExtension href/src unsafe-link filter bypass via embedded control bytes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d0adb2a4544b8dc2c3f70f19c849b1cc8296878b7a819796550452e05cd09fe2
- Ingested
- 23 Sep 2026, 09:29:33 UTC
- Source record
- Official CVE record