CVE-2026-86431
commonmark before 2.9.1 XSS via AttributesExtension form feed bypass
league/commonmark (thephpleague/commonmark) versions >= 2.7.0 and < 2.9.1 contain a cross-site scripting vulnerability in the AttributesExtension. Prefixing an attribute name with a single U+000C form feed byte (e.g. {\x0Conclick="alert(1)"}) bypasses the AttributesHelper::filterAttributes() 'on*' event-handler filter because PHP's trim() does not strip U+000C, causing the attribute to be written verbatim into the output where browsers parse it as a genuine event handler. The same prefix also defeats the allow_unsafe_links check, allowing javascript: URIs through href/src attributes even when allow_unsafe_links is false. Exploitation requires processing untrusted Markdown with the AttributesExtension enabled; the injected script executes when the rendered HTML is viewed. Fixed in 2.9.1.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.388% · 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-19T18:36:01.564Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 6.9 · published by VulnCheckCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Assessment source · checked 2026-11-19T12:59:20.094Z
CVSS 3.1 · 7.2 · published by VulnCheckCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:59:20.094Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T18:36:01.564Z | CISA KEV |
| cvss | verified | 2026-11-19T12:59:20.094Z | CVE Program |
| epss | verified | 2026-11-19T18:27:29.373Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:36.038Z | OSV |
| affected | verified | 2026-11-19T12:59:20.094Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:59:20.094Z | CVE Program |
Affected versions and configuration
thephpleague commonmark; default status: unaffected: 2.7.0 to < 2.9.1 [affected; scheme: semver]; 2.9.1 [unaffected; scheme: semver]
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.7.0",
"lessThan": "2.9.1",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "2.9.1",
"versionType": "semver"
}
],
"packageURL": "pkg:composer/league/commonmark",
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-86431",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-09-08T13:30:04.102356Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-09-08T13:33:06.656Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-f8fg-pg57-v4j8",
"aliases": [
"CVE-2026-86431"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.7.0"
},
{
"fixed": "2.9.1"
}
]
}
],
"package": {
"name": "league/commonmark",
"purl": "pkg:composer/league/commonmark",
"ecosystem": "Packagist"
},
"versions": [
"2.7.0",
"2.7.1",
"2.8.0",
"2.8.1",
"2.8.2",
"2.8.3",
"2.9.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-f8fg-pg57-v4j8/GHSA-f8fg-pg57-v4j8.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/thephpleague/commonmark/security/advisories/GHSA-f8fg-pg57-v4j8",
"type": "WEB"
},
{
"url": "https://github.com/thephpleague/commonmark/commit/dfcdf4554c16aa37c15e3a5ee3243ee26147c239",
"type": "WEB"
},
{
"url": "https://github.com/thephpleague/commonmark",
"type": "PACKAGE"
},
{
"url": "https://github.com/thephpleague/commonmark/releases/tag/2.9.1",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79",
"CWE-86"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-09-01T20:18:29Z"
}
}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.9.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-09-01T20:18:29.000Z
Source modification: 2026-09-08T12:38:28.846ZDocument fingerprint
0a172730ef394e9ee41ee53616a5f7f927626c621a555502c10a358a3911785b - CVE ProgramConsulted: 2026-11-19T12:59:20.094ZArchived source JSON
Source publication: 2026-09-07T12:53:51.246Z
Source modification: 2026-10-08T15:25:52.798ZDocument fingerprint
05e7345e16775867edc6ed48fa5b24b7a3c5cb30bb1b8f82afa310fc86e7319d - FIRST EPSSConsulted: 2026-11-19T18:27:29.373ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
fe94d0f40afbfc55e89fa42ead9c0d3428337ab9f957d4ff3fcdb7f95345a193 - CISA KEVConsulted: 2026-11-19T18:36:01.564ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence