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

Medium 6.3 Published Updated

Attackers can bypass domain allowlists in the Embed extension, potentially enabling SSRF or XSS via malicious domains.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-33347?

CVE-2026-33347 is a medium-severity vulnerability in thephpleague commonmark, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-918, CWE-79, CWE-185

Which versions are affected by CVE-2026-33347?

2 open source packages ship an affected version, including league/commonmark. It affects 1 product.

PackageAffectedFixed in
league/commonmark PackagistFrom 2.3.02.8.2
league/commonmark PackagistFrom 2.3.02.8.2

Products include Thephpleague Commonmark.

How do I fix CVE-2026-33347?

Upgrade league/commonmark to 2.8.2 or later.

Is CVE-2026-33347 being exploited?

There is no known exploitation of CVE-2026-33347 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-33347, GHSA-hh8v-hgvp-g3f5, UBUNTU-CVE-2026-33347.

Is CVE-2026-33347 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free