XSS in Thephpleague Commonmark
CVE-2026-33347
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.
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.003, 17.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Thephpleague Commonmark — versions >= 2.3.0, < 2.8.2
Weakness classification (CWE)
References
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-hh8v-hgvp-g3f5 (Mitigation, Vendor Advisory)
- https://github.com/thephpleague/commonmark/commit/59fb075d2101740c337c7216e3f32b36c204218b (Patch)
- https://github.com/thephpleague/commonmark/releases/tag/2.8.2 (Product, Release Notes)