{"id":"CVE-2026-33347","published":"2026-03-24T19:26:23Z","modified":"2026-03-26T19:52:12Z","title":"league/commonmark has an embed extension allowed_domains bypass","vendor":"thephpleague","product":"commonmark","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00278,"percentile":0.20722,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-185","name":"Incorrect Regular Expression"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-hh8v-hgvp-g3f5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/thephpleague/commonmark/commit/59fb075d2101740c337c7216e3f32b36c204218b","tags":["x_refsource_MISC"]},{"url":"https://github.com/thephpleague/commonmark/releases/tag/2.8.2","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":4.14},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"thephpleague","affectedVersions":[{"vendor":"thephpleague","product":"commonmark","versions":[">= 2.3.0, < 2.8.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-26T19:34:18.389527Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"league/commonmark","vulnerableRanges":[">=2.3.0, <2.8.2"],"patched":["2.8.2"],"from":["GHSA-hh8v-hgvp-g3f5"],"provenance":"source"}],"summary":{"text":"The Embed extension's DomainFilteringAdapter in league/commonmark, a PHP Markdown parser, fails to enforce a hostname boundary in its domain-matching regex, so an allowlist check accepts attacker-controlled domains such as youtube.com.evil when youtube.com is allowed. An attacker who can supply Markdown content to a site using the affected versions (2.3.0 through before 2.8.2) with the Embed extension and an allowed-domains configuration can exploit this, with no privileges required and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:11Z"},"euvd":{"id":"EUVD-2026-20079","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-10010","published":"2019-03-24","fixed":"0.18.3","kev":false},{"cve":"CVE-2025-46734","published":"2025-05-05","fixed":"2.7.0","kev":false},{"cve":"CVE-2026-30838","published":"2026-03-07","fixed":"2.8.1","kev":false,"link":{"from":"CVE-2026-30838","to":"CVE-2026-33347","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:league/commonmark","fromFixed":"2.8.1","toFixed":"2.8.2","daysApart":17}]}},{"cve":"CVE-2026-33347","published":"2026-03-24","fixed":"2.8.2","kev":false},{"cve":"CVE-2026-71478","published":"2026-08-06","fixed":"2.9.0","kev":false,"link":{"from":"CVE-2026-33347","to":"CVE-2026-71478","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:league/commonmark","fromFixed":"2.8.2","toFixed":"2.9.0","daysApart":135}]}},{"cve":"CVE-2026-71488","published":"2026-08-06","fixed":"2.9.0","kev":false,"link":{"from":"CVE-2026-33347","to":"CVE-2026-71488","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:league/commonmark","fromFixed":"2.8.2","toFixed":"2.9.0","daysApart":135}]}}],"package":"Packagist:league/commonmark"}}