Skip to main content
← All vulnerabilities
CVE-2026-33347GHSA-HH8V-HGVP-G3F5

league/commonmark has an embed extension allowed_domains bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.8.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • thephpleague commonmark

    From 2.3.0 · fixed in 2.8.2

  • league/commonmarkPackagist

    From 2.3.0 · fixed in 2.8.2

References 3

GitHub · thephpleague/commonmark