CVE-2026-33347
league/commonmark has an embed extension allowed_domains bypass
Reported by github_m · Published March 24, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| commonmark | thephpleague | 2.8.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| thephpleague | commonmark | >= 2.3.0, < 2.8.2 |
| thephpleague | commonmark | 2.3.0 |
| league | commonmark | 2.3.0 |
Timeline
- Mar 19, 2026 CVE Published
- Mar 20, 2026 Security Advisory
- Mar 24, 2026 PoC Published
- Mar 25, 2026 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 CVE Updated
- May 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-33347
vulnetix vdb fixes CVE-2026-33347
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-33347/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-hh8v-hgvp-g3f5 x_refsource_CONFIRM
- https://github.com/thephpleague/commonmark/commit/59fb075d2101740c337c7216e3f32b36c204218b x_refsource_MISC
- https://github.com/thephpleague/commonmark/releases/tag/2.8.2 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-33347 advisory
- https://github.com/advisories/GHSA-hh8v-hgvp-g3f5 advisory
- https://github.com/thephpleague/commonmark url