High · 8.7 Laravel GHSA-3q6v-r5mr-hxv8 CVE-2026-105830 PKSA-m4t9-vsgq-8khn
league/commonmark: Quadratic-Time Denial of Service in GFM Table Extension (CVE-2026-105830)
A denial-of-service flaw in league/commonmark's GitHub Flavored Markdown Table extension allows unauthenticated attackers to exhaust CPU resources by submitting crafted Markdown input. Fixed in version 2.10.2.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A denial-of-service vulnerability has been identified in league/commonmark, a widely used PHP Markdown parsing library. The flaw resides in the GitHub Flavored Markdown (GFM) Table extension and can be triggered remotely without authentication by submitting specially crafted Markdown text. A fix is available in version 2.10.2.
What happened
A vulnerability tracked as CVE-2026-105830 (GHSA-3q6v-r5mr-hxv8) was published affecting league/commonmark, a PHP library for parsing Markdown. The issue is a quadratic-time denial-of-service flaw located in the block-start scan of the GitHub Flavored Markdown Table extension's TableStartParser::tryStart() function.
Technical cause
The vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). According to the advisory, an attacker can submit a large paragraph consisting of pipe-free lines that do not start with letters. This input forces the TableStartParser::tryStart() function to repeatedly perform full-buffer strpos scans, resulting in quadratic-time processing that exhausts PHP worker CPU resources.
Why it matters
The vulnerability can be triggered by unauthenticated attackers without requiring any user interaction, meaning any application that passes untrusted user input to the CommonMark GFM Table extension could be exposed to CPU exhaustion and service degradation or outage.
Who is affected
Any application or service using league/commonmark with the GitHub Flavored Markdown Table extension enabled, within the affected version range, is potentially exposed. This includes PHP applications that render user-submitted Markdown content, such as comment systems, documentation tools, or content management platforms.
Affected versions
league/commonmark versions from 2.0.0 up to and including 2.10.1 are affected. Version 2.10.2 contains the fix.
Fixes and mitigation
The vulnerability is fixed in league/commonmark version 2.10.2. Users of affected versions (2.0.0 through 2.10.1) should update to 2.10.2 to resolve the issue.
Recommended action
Site owners and developers using league/commonmark should update to version 2.10.2 as soon as possible, particularly if the GitHub Flavored Markdown Table extension is enabled and the library processes untrusted or user-submitted Markdown input. Verify the update in dependency manifests (e.g., composer.lock) and redeploy affected services.
PatchBriefing score
8.7 / 10 · High
Official CVSS: 8.7
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
EPSS 0.0051 (37 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- league/commonmark >= 2.0.0, <= 2.10.1
- vulnerable
- league/commonmark ≥ 2.0.0 < 2.10.2
- vulnerable
- league/commonmark
- vulnerable
- league/commonmark >=2.0.0,<=2.10.1
- vulnerable
- ≥ 2.10.2
- patched
Reported fixes
The vulnerability is fixed in league/commonmark version 2.10.2. Users of affected versions (2.0.0 through 2.10.1) should update to 2.10.2 to resolve the issue.
How this was built
4 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
OSV.dev database
-
Packagist Security Advisories registry
-
NVD (NIST) database
Revision history
- Published
- Generated