CVE-2026-86431 commonmark before 2.9.1 XSS via AttributesExtension form feed bypass
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- PHPUbuntuDebian
Description
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.
Upgrade path
9 packages: 4 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/php-league-commonmark(Debian 12) | = 2.3.9-1; = 2.3.9-1+deb12u1; = 2.4.0-1; = 2.4.1-1 +22 more | No fix listed | No fix yet |
| debian/php-league-commonmark(Debian 13) | = 2.7.0-1; = 2.7.0-1+deb13u1; = 2.7.1-1; = 2.7.1-2 +10 more | No fix listed | No fix yet |
| ubuntu/php-league-commonmark(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/php-league-commonmark(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/php-league-commonmark(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| debian/php-league-commonmark(Debian 14) | < 2.10.0-1; = 2.7.0-1; = 2.7.1-1; = 2.7.1-2 +6 more | 2.10.0-1 | Fixed |
| league/commonmark | >= 2.7.0, < 2.9.1 | 2.9.1 | Fixed |
| league/commonmark(Packagist) | = 2.7.0; = 2.7.1; = 2.8.0; = 2.8.1 +4 more | 2.9.1 | Fixed |
| thephpleague commonmark | >= 2.7.0, < 2.9.1 | 2.9.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| league/commonmark(Packagist) | >= 2.7.0, < 2.9.1 | 2.9.1 |
| league/commonmark(Packagist) | = 2.7.0 | No fix listed |
| league/commonmark(Packagist) | = 2.7.1 | No fix listed |
| league/commonmark(Packagist) | = 2.8.0 | No fix listed |
| league/commonmark(Packagist) | = 2.8.1 | No fix listed |
| league/commonmark(Packagist) | = 2.8.2 | No fix listed |
| league/commonmark(Packagist) | = 2.8.3 | No fix listed |
| league/commonmark(Packagist) | = 2.9.0 | No fix listed |
| league/commonmark | >= 2.7.0, < 2.9.1 | 2.9.1 |
| debian/php-league-commonmark(Debian:12) | All versions | No fix listed |
| debian/php-league-commonmark(Debian:14) | < 2.10.0-1 | 2.10.0-1 |
| debian/php-league-commonmark(Debian:13) | All versions | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.10.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.10.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.10.3-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.3.9-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.3.9-1+deb12u1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.4.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.4.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.4.2-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.4.2-2 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.5.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.5.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.5.3-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.6.0-1 | No fix listed |
Show 38 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/php-league-commonmark(Debian:12) | = 2.6.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.6.1-2 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.6.2-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.7.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.7.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.7.1-2 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.8.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.8.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.8.2-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.8.2-2 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.8.3-1 | No fix listed |
| debian/php-league-commonmark(Debian:12) | = 2.9.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.10.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.10.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.10.3-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.7.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.7.0-1+deb13u1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.7.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.7.1-2 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.8.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.8.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.8.2-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.8.2-2 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.8.3-1 | No fix listed |
| debian/php-league-commonmark(Debian:13) | = 2.9.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.7.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.7.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.7.1-2 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.8.0-1 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.8.1-1 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.8.2-1 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.8.2-2 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.8.3-1 | No fix listed |
| debian/php-league-commonmark(Debian:14) | = 2.9.0-1 | No fix listed |
| ubuntu/php-league-commonmark(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/php-league-commonmark(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/php-league-commonmark(Ubuntu:26.04) | All versions | No fix listed |
| thephpleague commonmark | >= 2.7.0, < 2.9.1 | 2.9.1 |
References
- GitHub Security Advisory (GHSA-f8fg-pg57-v4j8) exploit mitigation vendor-advisory
- github.com patch
- github.com product
- github.com
- Patch Commit patch
- VulnCheck Advisory: commonmark before 2.9.1 XSS via AttributesExtension form feed bypass patch third-party-advisory
- Debian Security Tracker CVE-2026-86431 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-72389 third-party-advisory