Skip to main content
VulnerabilityPublished Updated

CVE-2026-33347: thephpleague commonmark · Cross-site Scripting

Affects thephpleague commonmarkSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
thephpleaguecommonmarkAffected
  • >=2.3.0 <2.8.2
Fixed in
  • 2.8.2
Packagistthephpleague/commonmarkpkg:composer/thephpleague/commonmarkOther threatsAffected
  • <2.8.2 >=2.3.0
Fixed in
  • 2.8.2

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.

References

Community reviews

Loading reviews…