GHSA-4v6x-c7xx-hw9f · Severity: medium · Ecosystem: composer — CommonMark has DisallowedRawHtml extension bypass via whitespace in HTML tag names
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.
Conclusion & alert: CVE-2026-30838 is rated Low Risk (25.3/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.05%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-08 | — | 0.05% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.1 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-4v6x-c7xx-hw9f · Severity: medium · Ecosystem: composer — CommonMark has DisallowedRawHtml extension bypass via whitespace in HTML tag names
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-30838 not yet assigned priority: Debian including 1 source packages (php-league-commonmark), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 4, open 1. | https://security-tracker.debian.org/tracker/CVE-2026-30838 |
ubuntu
|
medium | CVE-2026-30838 medium priority: Ubuntu including 1 source packages (php-league-commonmark), 5 status rows across 5 suites (focal, jammy, noble, questing, upstream): needs-triage 5. | https://ubuntu.com/security/CVE-2026-30838 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| thephpleague | commonmark | < 2.8.1 | cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f | Mitigation Vendor Advisory |