๐Ÿ” CVE Alert

CVE-2026-30838

UNKNOWN 0.0

league/commonmark: DisallowedRawHtml extension bypass via whitespace in HTML tag names

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-79
Vendor thephpleague
Product commonmark
Published Mar 7, 2026
Last Updated Mar 9, 2026
Stay Ahead of the Next One

Get instant alerts for thephpleague commonmark

Be the first to know when new unknown vulnerabilities affecting thephpleague commonmark are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

thephpleague / commonmark
< 2.8.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f