CVE-2026-33347
published medium CVSS 4.0 · 6.3league/commonmark has an embed extension allowed_domains bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| thephpleague | — | commonmark>= 2.3.0, < 2.8.2 | Affected | Not stated | GitHub_M |
| Ubuntu | focal | php-league-commonmark | Advisory build | 1.3.1-1ubuntu2+esm1 | USN-8194-1 |
| Ubuntu | jammy | php-league-commonmark | Advisory build | 1.6.7-1ubuntu0.1~esm1 | USN-8194-1 |
| Ubuntu | noble | php-league-commonmark | Advisory build | 2.4.2-2ubuntu0.1~esm1 | USN-8194-1 |
Description
league/commonmark is a PHP Markdown parser. From version 2.3.0 to before version 2.8.2, the DomainFilteringAdapter in the Embed extension is vulnerable to an allowlist bypass due to a missing hostname boundary assertion in the domain-matching regex. An attacker-controlled domain like youtube.com.evil passes the allowlist check when youtube.com is an allowed domain. This issue has been patched in version 2.8.2.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| thephpleague | commonmark | >= 2.3.0, < 2.8.2 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-185 CWE-185: Incorrect Regular Expression
- CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
References
3Provider assertions
2GitHub_M · cna
league/commonmark has an embed extension allowed_domains bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 45f770a4582c864f687092c8dca9d0270170f87bd0ee32f4cf7749739bdb1a9f
- Ingested
- 23 Sep 2026, 09:10:36 UTC
- Source record
- Official CVE record