# CVE-2026-33347: league/commonmark has an embed extension allowed_domains bypass

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-03-19T19:04:24.000Z
- Modified: 2026-06-17T10:37:21.270Z
- Also known as: GHSA-hh8v-hgvp-g3f5
- Weaknesses: CWE-79, CWE-185, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- thephpleague commonmark: >= 2.3.0, < 2.8.2; from 2.3.0 before 2.8.2
- league/commonmark (Packagist): from 2.3.0 before 2.8.2

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/thephpleague/commonmark/security/advisories/GHSA-hh8v-hgvp-g3f5> (mitigation, vendor-advisory, web)
- <https://github.com/thephpleague/commonmark/commit/59fb075d2101740c337c7216e3f32b36c204218b> (patch, web)
- <https://github.com/thephpleague/commonmark/releases/tag/2.8.2> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33347> (advisory)
- <https://github.com/thephpleague/commonmark> (package)

## Sources

- CVE List: [CVE-2026-33347](https://www.cve.org/CVERecord?id=CVE-2026-33347), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-hh8v-hgvp-g3f5](https://github.com/advisories/GHSA-hh8v-hgvp-g3f5), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33347](https://nvd.nist.gov/vuln/detail/CVE-2026-33347), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33347 · Whole record: https://cve.day/CVE-2026-33347.json · Rebuilt by cve.day 2026-11-25T22:59:16.607Z
