CVE-2026-33347: thephpleague commonmark · Cross-site Scripting
Affects thephpleague commonmarkSource CVE Database V5
Not known to be exploited · CVSS 6.3 Medium : upgrade to 2.8.2 when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 16% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.8.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade commonmark and thephpleague/commonmark to 2.8.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| thephpleaguecommonmark | Affected
| Fixed in
|
Packagistthephpleague/commonmarkpkg:composer/thephpleague/commonmarkOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately upgrade thephpleague commonmark library to version 2.8.2 or later, where the vulnerability is patched. For environments where immediate upgrade is not feasible, applying custom patches to fix the domain-matching regex by adding proper hostname boundary assertions can mitigate the risk. Additionally, implement defense-in-depth by sanitizing and validating all user-generated content before processing with Markdown parsers. Employ Content Security Policy (CSP) headers to restrict script execution and reduce the impact of potential XSS. Monitor logs for unusual embedding attempts or suspicious domain patterns that resemble allowlist bypass attempts. Conduct regular security code reviews and dependency audits to detect similar issues proactively. Finally, educate developers on secure regex construction and the risks of improper input validation in web content generation.
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.