Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-33347 EUVD-2026-20079GHSA-hh8v-hgvp-g3f5

league/commonmark has an embed extension allowed_domains bypass

Published Mar 24, 2026 · Updated Mar 26, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
thephpleague commonmark >= 2.3.0, < 2.8.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-league-commonmark 2.8.2-1 —
Debian 13 php-league-commonmark 2.7.0-1+deb13u1 —
Debian 12 php-league-commonmark 2.3.9-1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 php-league-commonmark No fix yet —
Ubuntu 26.04 LTS php-league-commonmark No fix yet —
Ubuntu 25.10 php-league-commonmark No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS php-league-commonmark 2.4.2-2ubuntu0.1~esm1 USN-8194-1
Ubuntu Pro 22.04 LTS php-league-commonmark 1.6.7-1ubuntu0.1~esm1 USN-8194-1
Ubuntu Pro 20.04 LTS php-league-commonmark 1.3.1-1ubuntu2+esm1 USN-8194-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist league/commonmark >= 2.3.0, < 2.8.2 2.8.2 GHSA-hh8v-hgvp-g3f5

Advisories 2

References