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 inefficient algorithmic complexity can lead to disproportionate CPU consumption, resulting in a denial of service condition. The issue is resolved in version 2.9.0.
AI Analysis
Technical Summary
Thephpleague commonmark library, used for parsing and rendering CommonMark Markdown in PHP, contains an inefficient algorithmic complexity vulnerability (CWE-407) in versions >=0.6.0 and <2.9.0. Specially crafted Markdown lines cause the parser to repeatedly rescan growing portions of a line, leading to quadratic time complexity. Additionally, the Autolink extension exacerbates this by copying and validating the remaining line at every URL-like prefix. This allows an attacker who can submit Markdown for conversion to consume excessive CPU resources with relatively small input. The vulnerability is fixed in version 2.9.0.
Potential Impact
An attacker able to submit Markdown content for parsing can cause the commonmark parser to consume disproportionate CPU time, potentially leading to denial of service by exhausting server resources. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade thephpleague commonmark to version 2.9.0 or later, where this inefficient algorithmic complexity issue is fixed. No other mitigations are indicated.
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 inefficient algorithmic complexity can lead to disproportionate CPU consumption, resulting in a denial of service condition. The issue is resolved in version 2.9.0.
CVSS v3.1
Score 7.5high
Affected software
thephpleague
commonmark
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, contains an inefficient algorithmic complexity vulnerability (CWE-407) in versions >=0.6.0 and <2.9.0. Specially crafted Markdown lines cause the parser to repeatedly rescan growing portions of a line, leading to quadratic time complexity. Additionally, the Autolink extension exacerbates this by copying and validating the remaining line at every URL-like prefix. This allows an attacker who can submit Markdown for conversion to consume excessive CPU resources with relatively small input. The vulnerability is fixed in version 2.9.0.
Potential Impact
An attacker able to submit Markdown content for parsing can cause the commonmark parser to consume disproportionate CPU time, potentially leading to denial of service by exhausting server resources. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade thephpleague commonmark to version 2.9.0 or later, where this inefficient algorithmic complexity issue is fixed. No other mitigations are indicated.
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
Threat ID: 6a750711bf8831d5395f5e10
Added to database: 08/06/2026, 22:13:37 UTC
Last enriched: 08/14/2026, 16:09:19 UTC
Last updated: 09/19/2026, 10:01:33 UTC
Views: 60
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.