CVE-2026-30838
league/commonmark: 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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.245% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.1 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
Assessment source · checked 2026-11-19T12:58:19.919Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:19.919Z | CVE Program |
| epss | verified | 2026-11-19T16:04:48.739Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:36.038Z | OSV |
| affected | verified | 2026-11-19T12:58:19.919Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:19.919Z | CVE Program |
Affected versions and configuration
thephpleague commonmark; default status: unknown: < 2.8.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "thephpleague",
"product": "commonmark",
"versions": [
{
"status": "affected",
"version": "< 2.8.1"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-30838",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-03-09T17:38:55.476351Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-03-09T18:26:15.482Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-4v6x-c7xx-hw9f",
"aliases": [
"CVE-2026-30838"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.8.1"
}
]
}
],
"package": {
"name": "league/commonmark",
"purl": "pkg:composer/league/commonmark",
"ecosystem": "Packagist"
},
"versions": [
"2.0.0",
"2.0.1",
"2.0.2",
"2.0.3",
"2.0.4",
"2.1.0",
"2.1.1",
"2.1.2",
"2.1.3",
"2.2.0",
"2.2.1",
"2.2.2",
"2.2.3",
"2.2.4",
"2.2.5",
"2.3.0",
"2.3.1",
"2.3.2",
"2.3.3",
"2.3.4",
"2.3.5",
"2.3.6",
"2.3.7",
"2.3.8",
"2.3.9",
"2.4.0",
"2.4.1",
"2.4.2",
"2.4.3",
"2.4.4",
"2.5.0",
"2.5.1",
"2.5.2",
"2.5.3",
"2.6.0",
"2.6.1",
"2.6.2",
"2.7.0",
"2.7.1",
"2.8.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-4v6x-c7xx-hw9f/GHSA-4v6x-c7xx-hw9f.json",
"last_known_affected_version_range": "<= 2.8.0"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-30838",
"type": "ADVISORY"
},
{
"url": "https://commonmark.thephpleague.com/extensions/disallowed-raw-html",
"type": "WEB"
},
{
"url": "https://github.com/thephpleague/commonmark",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-03-07T16:15:56Z",
"github_reviewed_at": "2026-03-06T23:27:03Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Packagist / package | league/commonmark | Not a distribution channel | 2.8.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:36.038ZArchived source JSON
Source publication: 2026-03-06T23:27:03.000Z
Source modification: 2026-03-20T21:35:35.482ZDocument fingerprint
0a172730ef394e9ee41ee53616a5f7f927626c621a555502c10a358a3911785b - CVE ProgramConsulted: 2026-11-19T12:58:19.919ZArchived source JSON
Source publication: 2026-03-07T16:00:32.351Z
Source modification: 2026-03-09T18:26:15.482ZDocument fingerprint
5ab6617c2b73301a48b88bf85dfcb8393b66286f046f9b76fd4d062db43a0e30 - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:48.739ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3313a11d11e613d0701bead667f77d25d88fe41ce03f62f29fd0b2747a4c900c
Official status history
- UNKNOWN → PUBLISHED · · evidence