CVE-2026-33347

MEDIUM

league/commonmark has an embed extension allowed_domains bypass

Title source: cna

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.

Scores

CVSS v3 6.1
EPSS 0.0001
EPSS Percentile 1.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Details

CWE
CWE-185 CWE-79 CWE-918
Status published
Products (3)
league/commonmark 2.3.0 - 2.8.2Packagist
thephpleague/commonmark 2.3.0 - 2.8.2
thephpleague/commonmark >= 2.3.0, < 2.8.2
Published Mar 24, 2026
Tracked Since Mar 25, 2026