Skip to main content
EPSS 0.3%top 72%

CVE-2026-71488: CWE-407: Inefficient Algorithmic Complexity in thephpleague commonmark

0
High
Published: 08/06/2026 (08/06/2026, 20:37:17 UTC)
Source: CVE Database V5
Vendor/Project: thephpleague
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

thephpleague

commonmark

Affected versions
>=0.6.0 <2.9.0
Packagistmore threats →ai
thephpleague/commonmark
pkg:composer/thephpleague/commonmark
Affected versions
<2.9.0 >=0.6.0

Run 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

AILast updated: 08/14/2026, 16:09:19 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses