Skip to content

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

MediumCVSS 6.3 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known

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

ProductAffected versionsFixed in
league/commonmark(Packagist) >= 2.3.0, < 2.8.2 2.8.2
league/commonmark(Packagist) = 2.3.0 No fix listed
league/commonmark(Packagist) = 2.3.1 No fix listed
league/commonmark(Packagist) = 2.3.2 No fix listed
league/commonmark(Packagist) = 2.3.3 No fix listed
league/commonmark(Packagist) = 2.3.4 No fix listed
league/commonmark(Packagist) = 2.3.5 No fix listed
league/commonmark(Packagist) = 2.3.6 No fix listed
league/commonmark(Packagist) = 2.3.7 No fix listed
league/commonmark(Packagist) = 2.3.8 No fix listed
league/commonmark(Packagist) = 2.3.9 No fix listed
league/commonmark(Packagist) = 2.4.0 No fix listed
league/commonmark(Packagist) = 2.4.1 No fix listed
league/commonmark(Packagist) = 2.4.2 No fix listed
league/commonmark(Packagist) = 2.4.3 No fix listed
league/commonmark(Packagist) = 2.4.4 No fix listed
league/commonmark(Packagist) = 2.5.0 No fix listed
league/commonmark(Packagist) = 2.5.1 No fix listed
league/commonmark(Packagist) = 2.5.2 No fix listed
league/commonmark(Packagist) = 2.5.3 No fix listed
league/commonmark(Packagist) = 2.6.0 No fix listed
league/commonmark(Packagist) = 2.6.1 No fix listed
league/commonmark(Packagist) = 2.6.2 No fix listed
league/commonmark(Packagist) = 2.7.0 No fix listed
league/commonmark(Packagist) = 2.7.1 No fix listed
Show 19 more
ProductAffected versionsFixed in
league/commonmark(Packagist) = 2.8.0 No fix listed
league/commonmark(Packagist) = 2.8.1 No fix listed
debian/php-league-commonmark(Debian:12) < 2.3.9-1+deb12u1 2.3.9-1+deb12u1
debian/php-league-commonmark(Debian:14) < 2.8.2-1 2.8.2-1
debian/php-league-commonmark(Debian:13) < 2.7.0-1+deb13u1 2.7.0-1+deb13u1
thephpleague commonmark = >= 2.3.0, < 2.8.2 No fix listed
league/commonmark(Packagist) >= 2.3.0, <= 2.8.1 No fix listed
debian/php-league-commonmark(Debian:12) = 2.3.9-1 No fix listed
debian/php-league-commonmark(Debian:13) = 2.7.0-1 No fix listed
debian/php-league-commonmark(Debian:14) = 2.7.0-1 No fix listed
debian/php-league-commonmark(Debian:14) = 2.7.1-1 No fix listed
debian/php-league-commonmark(Debian:14) = 2.7.1-2 No fix listed
debian/php-league-commonmark(Debian:14) = 2.8.0-1 No fix listed
debian/php-league-commonmark(Debian:14) = 2.8.1-1 No fix listed
ubuntu/php-league-commonmark(Ubuntu:22.04) < 1.6.7-1ubuntu0.1~esm1 1.6.7-1ubuntu0.1~esm1
ubuntu/php-league-commonmark(Ubuntu:24.04) < 2.4.2-2ubuntu0.1~esm1 2.4.2-2ubuntu0.1~esm1
ubuntu/php-league-commonmark(Ubuntu:26.04) All versions No fix listed
ubuntu/php-league-commonmark(Ubuntu:26.10) All versions No fix listed
thephpleague commonmark >= 2.3.0, < 2.8.2 2.8.2

References