CVEfocus › CVE database › CVE-2026-86431

CVE-2026-86431commonmark before 2.9.1 XSS via AttributesExtension form feed bypass

CVSS 7.2 HighEPSS 0.4% (higher than 25% of CVEs)Published 2026-09-07Updated 2026-10-08Assigner: VulnCheck

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.

CWE-79

What to do

Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04php-league-commonmarkUnder investigationUBUNTU-CVE-2026-86431
Ubuntu 24.04php-league-commonmarkFix pendingUBUNTU-CVE-2026-86431
Ubuntu 22.04php-league-commonmarkFix pendingUBUNTU-CVE-2026-86431
Ubuntu 20.04php-league-commonmarkFix pendingUBUNTU-CVE-2026-86431
Debian 14php-league-commonmarkFixed2.10.0-1DEBIAN-CVE-2026-86431
Debian 13php-league-commonmarkFix pendingDEBIAN-CVE-2026-86431
Debian 12php-league-commonmarkFix pendingDEBIAN-CVE-2026-86431
Packagist libraryleague/commonmarkFixed2.9.1GHSA-f8fg-pg57-v4j8

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.