CVE-2026-71488league/commonmark: Quadratic-time denial of service when parsing crafted Markdown
league/commonmark is a PHP library for parsing and rendering CommonMark Markdown. From 0.6.0 until 2.9.0, specially crafted Markdown lines can cause the parser to have quadratic time complexity when converting, because several parsing paths repeatedly rescan growing portions of a line to translate between character positions and byte positions, and the Autolink extension can also copy and validate the remaining line at every URL-like prefix, allowing an attacker who can submit Markdown for conversion to consume disproportionate CPU time with a comparatively small request. This issue is fixed in 2.9.0.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | commonmark | Fix pending | UBUNTU-CVE-2026-71488 | |
| Ubuntu 26.10 | markdown | Fix pending | UBUNTU-CVE-2026-71488 | |
| Ubuntu 26.04 | commonmark | Under investigation | UBUNTU-CVE-2026-71488 | |
| Ubuntu 26.04 | markdown | Under investigation | UBUNTU-CVE-2026-71488 | |
| Ubuntu 24.04 | commonmark | Under investigation | UBUNTU-CVE-2026-71488 | |
| Ubuntu 24.04 | markdown | Under investigation | UBUNTU-CVE-2026-71488 | |
| Ubuntu 22.04 | commonmark | Under investigation | UBUNTU-CVE-2026-71488 | |
| Ubuntu 22.04 | markdown | Under investigation | UBUNTU-CVE-2026-71488 | |
| Ubuntu 20.04 | markdown | Fix pending | UBUNTU-CVE-2026-71488 | |
| Ubuntu 18.04 | markdown | Fix pending | UBUNTU-CVE-2026-71488 | |
| Ubuntu 16.04 | markdown | Fix pending | UBUNTU-CVE-2026-71488 | |
| Debian 14 | php-league-commonmark | Fixed | 2.9.0-1 | DEBIAN-CVE-2026-71488 |
| Debian 13 | php-league-commonmark | Fix pending | DEBIAN-CVE-2026-71488 | |
| Debian 12 | php-league-commonmark | Fix pending | DEBIAN-CVE-2026-71488 | |
| Packagist library | league/commonmark | Fixed | 2.9.0 | GHSA-2q4p-g7hv-5rgv |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- thephpleague commonmark: affected: >= 0.6.0, < 2.9.0
References
- https://github.com/thephpleague/commonmark/security/advisories/GHSA-2q4p-g7hv-5rgv
- https://github.com/thephpleague/commonmark/commit/a6ef6cdc308dfa39a34239c35818e75892a0e6a8
- https://github.com/thephpleague/commonmark/commit/a70979ea0d7d3377bd7127536748454a922bf5eb
- https://github.com/thephpleague/commonmark/commit/c97b02e5e652b992033b93ba5d6182f706343fc6
- https://github.com/thephpleague/commonmark/releases/tag/2.9.0
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.