CVE-2026-30838 league/commonmark: DisallowedRawHtml extension bypass via whitespace in HTML tag names
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- PHPUbuntuDebian
Description
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.
Upgrade path
9 packages: 7 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/php-league-commonmark(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/php-league-commonmark(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/php-league-commonmark(Debian 12) | < 2.3.9-1+deb12u1; = 2.3.9-1 | 2.3.9-1+deb12u1 | Fixed |
| debian/php-league-commonmark(Debian 13) | < 2.7.0-1+deb13u1; = 2.7.0-1 | 2.7.0-1+deb13u1 | Fixed |
| debian/php-league-commonmark(Debian 14) | < 2.8.1-1; = 2.7.0-1; = 2.7.1-1; = 2.7.1-2 +1 more | 2.8.1-1 | Fixed |
| league/commonmark(Packagist) | = 2.0.0; = 2.0.1; = 2.0.2; = 2.0.3 +38 more | 2.8.1 | Fixed |
| thephpleague commonmark | < 2.8.1; = < 2.8.1 | 2.8.1 | Fixed |
| ubuntu/php-league-commonmark(Ubuntu 22.04) | < 1.6.7-1ubuntu0.1~esm1 | 1.6.7-1ubuntu0.1~esm1 | Fixed |
| ubuntu/php-league-commonmark(Ubuntu 24.04) | < 2.4.2-2ubuntu0.1~esm1 | 2.4.2-2ubuntu0.1~esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| league/commonmark(Packagist) | >= 2.0.0, < 2.8.1 | 2.8.1 |
| league/commonmark(Packagist) | = 2.0.0 | No fix listed |
| league/commonmark(Packagist) | = 2.0.1 | No fix listed |
| league/commonmark(Packagist) | = 2.0.2 | No fix listed |
| league/commonmark(Packagist) | = 2.0.3 | No fix listed |
| league/commonmark(Packagist) | = 2.0.4 | No fix listed |
| league/commonmark(Packagist) | = 2.1.0 | No fix listed |
| league/commonmark(Packagist) | = 2.1.1 | No fix listed |
| league/commonmark(Packagist) | = 2.1.2 | No fix listed |
| league/commonmark(Packagist) | = 2.1.3 | No fix listed |
| league/commonmark(Packagist) | = 2.2.0 | No fix listed |
| league/commonmark(Packagist) | = 2.2.1 | No fix listed |
| league/commonmark(Packagist) | = 2.2.2 | No fix listed |
| league/commonmark(Packagist) | = 2.2.3 | No fix listed |
| league/commonmark(Packagist) | = 2.2.4 | No fix listed |
| league/commonmark(Packagist) | = 2.2.5 | No fix listed |
| 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 |
Show 32 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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 |
| league/commonmark(Packagist) | = 2.8.0 | 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.1-1 | 2.8.1-1 |
| debian/php-league-commonmark(Debian:13) | < 2.7.0-1+deb13u1 | 2.7.0-1+deb13u1 |
| thephpleague commonmark | = < 2.8.1 | No fix listed |
| league/commonmark(Packagist) | >= 2.0.0, <= 2.8.0 | 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 |
| 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.8.1 | 2.8.1 |
References
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- commonmark.thephpleague.com
- github.com product
- Debian Security Tracker CVE-2026-30838 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-8194-1 vendor-advisory
- www.cve.org