cve.bz

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

6.3 mediumEPSS 0.3%Fix available

Medium (6.3) in thephpleague commonmark. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in league/commonmark 2.8.2.

On this page
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.

Severity

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

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 21st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-03-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
CWE-185 Incorrect Regular Expression
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-33347 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-33347?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-33347?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-33347 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
thephpleague:commonmarkfrom 2.3.0 before 2.8.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hh8v-hgvp-g3f5Packagistleague/commonmark>=2.3.0 <2.8.22.8.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12php-league-commonmark2.3.9-1+deb12u1DEBIAN-CVE-2026-33347
Debian13php-league-commonmark2.7.0-1+deb13u1DEBIAN-CVE-2026-33347
Debian14php-league-commonmark2.8.2-1DEBIAN-CVE-2026-33347
Ubuntu25.10, 26.04:LTS, 26.10php-league-commonmarkno fix listedUBUNTU-CVE-2026-33347
UbuntuPro:20.04:LTSphp-league-commonmark1.3.1-1ubuntu2+esm1UBUNTU-CVE-2026-33347 USN-8194-1
UbuntuPro:22.04:LTSphp-league-commonmark1.6.7-1ubuntu0.1~esm1UBUNTU-CVE-2026-33347 USN-8194-1
UbuntuPro:24.04:LTSphp-league-commonmark2.4.2-2ubuntu0.1~esm1UBUNTU-CVE-2026-33347 USN-8194-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High
  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON