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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-hh8v-hgvp-g3f5 mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/thephpleague/commonmark/commit/59fb075d2101740c337c7216e3f32b36c204218b patch
- github.com product
- https://github.com/thephpleague/commonmark/releases/tag/2.8.2 product release-notes
- Debian Security Tracker CVE-2026-33347 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-8194-1 vendor-advisory
- www.cve.org