CVE-2026-71488
Received Received - Intake

Path Traversal in league/commonmark Markdown Parser

Vulnerability report for CVE-2026-71488, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-06

Last updated on: 2026-08-06

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-06
Last Modified
2026-08-06
Generated
2026-08-07
AI Q&A
2026-08-07
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
league commonmark From 0.6.0 (inc) to 2.9.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1050 The product has a loop body or loop condition that contains a control element that directly or indirectly consumes platform resources, e.g. messaging, sessions, locks, or file descriptors.
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects the league/commonmark PHP library used for parsing and rendering CommonMark Markdown. It causes the parser to have quadratic time complexity when processing specially crafted Markdown lines due to repeated rescanning of growing portions of a line to convert between character and byte positions. The Autolink extension also copies and validates the remaining line at every URL-like prefix, leading to excessive CPU usage.

Detection Guidance

Detection requires checking the installed version of league/commonmark. Use composer show league/commonmark to verify if the version is below 2.9.0. If so, the system is vulnerable.

Impact Analysis

An attacker could exploit this vulnerability by submitting malicious Markdown input to consume disproportionate CPU resources, potentially causing denial-of-service conditions on systems using affected versions of the library. This could lead to degraded performance or complete unavailability of services relying on the library.

Mitigation Strategies

Upgrade league/commonmark to version 2.9.0 or later immediately. Use composer require league/commonmark:^2.9.0 to apply the fix.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-71488. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart