CVE-2026-30838

EUVD-2026-10168
league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. For example, <script\n> would pass through unfiltered and be rendered as a valid HTML tag by browsers. This is a cross-site scripting (XSS) vector for any application that relies on this extension to sanitize untrusted user input. All applications using the DisallowedRawHtml extension to process untrusted markdown are affected. Applications that use a dedicated HTML sanitizer (such as HTML Purifier) on the rendered output are not affected. This issue has been patched in version 2.8.1.
Cross-site Scripting
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
6.1 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 12%
Affected Products (NVD)
VendorProductVersion
thephpleaguecommonmark
𝑥
< 2.8.1
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php-league-commonmark
bookworm
2.3.9-1+deb12u1
fixed
bullseye
postponed
forky
2.10.0-1
fixed
sid
2.10.0-1
fixed
trixie
2.7.0-1+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php-league-commonmark
focal
Fixed 1.3.1-1ubuntu2+esm1
released
jammy
Fixed 1.6.7-1ubuntu0.1~esm1
released
noble
Fixed 2.4.2-2ubuntu0.1~esm1
released
questing
ignored
resolute
needed