CVE-2026-105830

league/commonmark 2.0.0 before 2.10.2 Quadratic DoS via TableStartParser

Published Oct 8, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
league/commonmark from 2.0.0 before 2.10.2 contains a quadratic-time denial of service vulnerability in the GitHub Flavored Markdown Table extension's TableStartParser::tryStart() block-start scan. Unauthenticated attackers can submit a large paragraph of pipe-free lines not starting with letters, forcing repeated full-buffer strpos scans that exhaust PHP worker CPU.

Analysis

AI-generated

Technical impact

league/commonmark from version 2.0.0 up to but not including 2.10.2 contains a quadratic‑time denial‑of‑service flaw in the TableStartParser::tryStart() routine. Unauthenticated users can submit a paragraph composed of pipe‑free lines that do not begin with letters, forcing the parser to repeatedly scan the entire buffer with strpos and rapidly consume CPU resources. The weakness is a classic resource exhaustion problem identified as CWE‑400.

Affected Systems

The affected product is thephpleague commonmark. Any installation of the library in the version range 2.0.0 through 2.10.1 is vulnerable; version 2.10.2 and later contain the fix.

Risk and Exploitability

The vulnerability has a CVSS score of 8.7, indicating a high severity. EPSS is not available and the flaw is not listed in the CISA KEV catalog. Attackers need no authentication and can exploit the issue by feeding large amounts of specially crafted markdown content to any service that uses commonmark. Because the flaw is purely computational, it can be triggered remotely and will cause a denial of service by exhausting PHP worker CPU.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the league/commonmark library to version 2.10.2 or later.
  • If an upgrade is not immediately possible, disable or remove the GitHub Flavored Markdown Table extension to prevent the problematic parser from executing.
  • Implement application‑level rate limiting or resource throttling on endpoints that process markdown to mitigate the impact of repeated DoS attempts.

Generated by OpenCVE AI on October 8, 2026 at 15:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description league/commonmark from 2.0.0 before 2.10.2 contains a quadratic-time denial of service vulnerability in the GitHub Flavored Markdown Table extension's TableStartParser::tryStart() block-start scan. Unauthenticated attackers can submit a large paragraph of pipe-free lines not starting with letters, forcing repeated full-buffer strpos scans that exhaust PHP worker CPU.
Title league/commonmark 2.0.0 before 2.10.2 Quadratic DoS via TableStartParser
First Time appeared Thephpleague
Thephpleague commonmark
Weaknesses CWE-400
CPEs cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*
Vendors & Products Thephpleague
Thephpleague commonmark
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 5:03 PM
Reserved
Oct 5, 2026, 9:59 PM
Status
Awaiting Analysis
Published
Oct 8, 2026, 3:17 PM
Modified
Oct 8, 2026, 9:33 PM