CVE catalog

CVE-2026-86431

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

[CVE catalog]

Severity
Medium · CVSS 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.39% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp-league-commonmarksid2.10.4-1fixed
Debianphp-league-commonmarkforky2.10.4-1fixed
Debianphp-league-commonmarktrixie2.7.0-1+deb13u1vulnerable
Debianphp-league-commonmarkbookworm2.3.9-1+deb12u1vulnerable
CpecommonmarkNot reported2.9.1fixed
Ubuntuphp-league-commonmarkpro2.3.9-1vulnerable
Ubuntuphp-league-commonmarkpro2.4.1-1vulnerable
Ubuntuphp-league-commonmarkpro2.4.2-1vulnerable
Ubuntuphp-league-commonmarkpro2.4.2-2vulnerable
Ubuntuphp-league-commonmarkpro2.4.2-2ubuntu0.1~esm1vulnerable
Ubuntuphp-league-commonmark26.042.7.0-1vulnerable
Ubuntuphp-league-commonmark26.042.7.1-2vulnerable
Ubuntuphp-league-commonmark26.042.8.0-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-league-commonmarksourcesid2.10.0-1not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourceforky2.10.0-1not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianphp-league-commonmarksourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpecommonmarkcpeNot reported2.9.1Not reportedNVD-CVE-2026-86431Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 2.3.9-1+deb12u1 · all · bookworm

      Affected

      nvd · php-league-commonmark · debian · bookworm; nvd · php-league-commonmark · debian · 12

    • 2.3.9-1+deb12u1 · all · bookworm

      Affected

      nvd · php-league-commonmark · debian · bookworm; nvd · php-league-commonmark · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 2.7.0-1+deb13u1 · all · trixie

      Affected

      nvd · php-league-commonmark · debian · 13

    • 2.7.0-1+deb13u1 · all · trixie

      Affected

      nvd · php-league-commonmark · debian · 13

Observed:

References