CVE-2026-71488: CWE-407: Inefficient Algorithmic Complexity in thephpleague commonmark
A vulnerability in thephpleague commonmark PHP library versions from 0.6.0 up to but not including 2.9.0 allows specially crafted Markdown input to cause quadratic time complexity during parsing. This inefficiency arises from repeated rescanning of growing portions of a line and the Autolink extension's processing, enabling an attacker to consume disproportionate CPU resources with relatively small inputs. The issue is fixed in version 2.9.0.
AI Analysis
Technical Summary
Thephpleague commonmark library, used for parsing and rendering CommonMark Markdown in PHP, suffers from an inefficient algorithmic complexity vulnerability (CWE-407) in versions >=0.6.0 and <2.9.0. The parser's handling of certain Markdown lines involves repeated rescanning of increasing portions of a line to translate character to byte positions. Additionally, the Autolink extension copies and validates the remaining line at every URL-like prefix, compounding the inefficiency. This results in quadratic time complexity, allowing an attacker who can submit Markdown for conversion to cause excessive CPU consumption. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impacts availability only. The issue is resolved in version 2.9.0.
Potential Impact
An attacker able to submit crafted Markdown input to the vulnerable commonmark parser can cause excessive CPU usage due to quadratic time complexity in parsing. This can lead to denial of service conditions by exhausting server processing resources. There is no impact on confidentiality or integrity. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to version 2.9.0 or later of thephpleague commonmark library where this inefficiency is fixed. No other mitigation or temporary workaround is documented. Patch status is confirmed fixed in 2.9.0.
CVE-2026-71488: CWE-407: Inefficient Algorithmic Complexity in thephpleague commonmark
Description
A vulnerability in thephpleague commonmark PHP library versions from 0.6.0 up to but not including 2.9.0 allows specially crafted Markdown input to cause quadratic time complexity during parsing. This inefficiency arises from repeated rescanning of growing portions of a line and the Autolink extension's processing, enabling an attacker to consume disproportionate CPU resources with relatively small inputs. The issue is fixed in version 2.9.0.
CVSS v3.1
Score 7.5high
Affected software
pkg:composer/thephpleague/commonmarkRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Thephpleague commonmark library, used for parsing and rendering CommonMark Markdown in PHP, suffers from an inefficient algorithmic complexity vulnerability (CWE-407) in versions >=0.6.0 and <2.9.0. The parser's handling of certain Markdown lines involves repeated rescanning of increasing portions of a line to translate character to byte positions. Additionally, the Autolink extension copies and validates the remaining line at every URL-like prefix, compounding the inefficiency. This results in quadratic time complexity, allowing an attacker who can submit Markdown for conversion to cause excessive CPU consumption. The vulnerability has a CVSS 3.1 base score of 7.5 (high severity) with network attack vector, low attack complexity, no privileges or user interaction required, and impacts availability only. The issue is resolved in version 2.9.0.
Potential Impact
An attacker able to submit crafted Markdown input to the vulnerable commonmark parser can cause excessive CPU usage due to quadratic time complexity in parsing. This can lead to denial of service conditions by exhausting server processing resources. There is no impact on confidentiality or integrity. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to version 2.9.0 or later of thephpleague commonmark library where this inefficiency is fixed. No other mitigation or temporary workaround is documented. Patch status is confirmed fixed in 2.9.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-06T19:56:23.725Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a750711bf8831d5395f5e10
Added to database: 08/06/2026, 22:13:37 UTC
Last enriched: 08/06/2026, 22:26:34 UTC
Last updated: 08/07/2026, 02:05:55 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.