Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit oversized Markdown to rendering endpoint
-
ExploitTwo long emphasis runs bypass max_delimiters_per_line
-
ExecutionParser builds deeply nested strong elements
-
ImpactQuadratic render exhausts CPU and causes DoS
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application render attacker-controlled Markdown through league/commonmark 2.6.0 up to 2.10.7 and accept sufficiently large single-line/paragraph input: the advisory measures meaningful CPU cost only at scale (~3 seconds for a 250 KB paragraph, over a minute at 500 KB), while inputs under about 100 KB convert in under a second and are not meaningfully affected. The flaw manifests even when the recommended max_delimiters_per_line option is set, because the pre-2.10.8 code counts each delimiter run as a single delimiter regardless of length, so a pair of long '_' or '*' runs bypasses any limit; max_nesting_level does not help as it only bounds block nesting. The key limiting factor is therefore untrusted-input size: applications that cap the length of a single line or paragraph before conversion blunt or eliminate the attack even on unpatched versions. |
| Impact | This is a genuine but lower-tier availability issue, not a drop-everything emergency. The signals align rather than conflict: the input CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) scores 6.3 with only limited availability impact (VA:L) and no confidentiality or integrity impact, and the vuln.today decision label is 'this_month' - consistent with a resource-exhaustion DoS rather than code execution or data exposure. AC:H plus AT:P reflect real preconditions: the GHSA confirms meaningful CPU cost only kicks in at large inputs (~3s for a 250 KB paragraph, over a minute at 500 KB, under a second below ~100 KB), so applications that cap untrusted Markdown size are 'not meaningfully affected.' KEV status is not indicated in the input, so there is no confirmed active exploitation; EPSS is not provided, so exploitation probability cannot be quantified here. No public exploit code or PoC reference is present in the supplied data (the @AlpetGexha report is credited but not published as working exploit code). CWE is reported inconsistently - NVD/input lists CWE-770 (uncontrolled resource allocation) while the GHSA lists CWE-400 (uncontrolled resource consumption); both are correct-class for this DoS and do not change the assessment. Net: real priority for apps that render large untrusted Markdown without size limits, low real risk for apps that already cap input. |
| Exploit ScenarioDerived | An application that renders attacker-supplied Markdown (e.g. comments, profile bios, or chat) with league/commonmark 2.6.0-2.10.7 accepts a single large paragraph containing two long emphasis-character runs such as '____…____.____…____'. Because max_delimiters_per_line counts each run as one delimiter, the input bypasses any configured limit and produces deeply nested <strong> elements, forcing quadratic rendering time (~3 seconds at 250 KB, over a minute at 500 KB) and exhausting CPU on the request worker. No public exploit code is identified in the available data, but the technique is fully described in the vendor advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Quadratic-time Markdown rendering in league/commonmark 2.6.0 through 2.10.7 allows remote attackers to exhaust CPU by submitting a single paragraph containing two very long emphasis delimiter runs, which the parser turns into deeply nested <strong> elements. The recommended max_delimiters_per_line guard does not stop it, because pre-2.10.8 code charges one unit per delimiter run instead of per delimiter character, so two long runs of '_' or '*' stay under any limit; max_nesting_level does not help either, as it only bounds block nesting. Impact is availability-only and scales with input size (roughly 3 seconds for a 250 KB paragraph and over a minute at 500 KB on PHP 8.4, while paragraphs under about 100 KB convert in under a second), so exposure is concentrated in applications that render large untrusted Markdown documents. No public exploit code was identified at time of analysis, the issue is not in CISA KEV, and the vendor has released 2.10.8 as a fix.
RemediationAI
Upgrade composer/league/commonmark to 2.10.8, which is the vendor-released patch (fix commit eb208506ff62b871d14bf5b086ae83405e23190e, referenced from advisory GHSA-h4px-59g8-q37c). Be aware of the documented behaviour change: max_delimiters_per_line now counts each delimiter character rather than each run, so '**' counts as 2 and a run of 50 underscores counts as 50; applications that set a very low limit may need to raise it slightly to avoid rendering previously parsed emphasis as literal text (the documentation example moves from 6 to 9 for the same input). For versions that cannot be upgraded immediately, the advisory's stated workaround is to limit the size of untrusted input, or the length of a single line or paragraph, before conversion - capping paragraphs well below 100 KB removes the practical CPU cost, at the trade-off of rejecting or truncating large legitimate documents and requiring enforcement at the application layer rather than in the parser. Note that max_nesting_level is explicitly not a mitigation, since it constrains only block nesting; and since the flaw bypasses max_delimiters_per_line on unpatched versions, raising or setting that option alone will not protect a 2.6.0-2.10.7 install. Input size limits also blunt the separate, linear per-punctuation-character memory cost described in the advisory.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
league/commonmark is a PHP implementation of the CommonMark Markdown specification; its inline parser maintains a DelimiterStack of emphasis delimiter runs ('*' and '_') and resolves them into <em>/<strong> elements. Per the CommonMark spec, an uninterrupted run of N delimiter characters can yield roughly N/2 levels of nested <strong> elements, so a single line composed of two long runs produces an inline tree whose rendering cost is quadratic in nesting depth. The vulnerability class is resource consumption (CWE-770 allocation of resources without limits or throttling; the upstream advisory labels it CWE-400 uncontrolled resource consumption): DelimiterStack::push() decremented a single unit from remainingDelimiters per run regardless of run length, so max_delimiters_per_line - the option the project's own security documentation recommends for untrusted input - never engaged on long runs, and max_nesting_level constrains only block nesting, not inline nesting. The 2.10.8 fix charges the full run length against the budget (a run of 200 underscores costs 200, '**' costs 2) and, once the budget is exceeded, ignores all subsequent delimiters so the run is emitted as literal text. The advisory also notes that an originally reported memory-exhaustion symptom near 117 KB was investigated and found unrelated to emphasis processing - it stems from roughly 1 KB of transient per-punctuation-character memory in the inline parser, grows linearly, and surfaces as an ordinary memory_limit error; that is being handled as a separate performance improvement and is mitigated by input size limits.
Know when Commonmark gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Remote unauthenticated input (AV:N/PR:N/UI:N) but AC:H because a large, specifically-structured paragraph is needed; impact is partial availability only (A:L), with no C/I impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
league/commonmark 2.6.0 before 2.10.8 contains a denial of service vulnerability in DelimiterStack::push() that miscounts delimiter runs against the max_delimiters_per_line budget. Attackers submitting Markdown with two long emphasis character runs can produce deeply nested strong elements, causing quadratic rendering time and CPU exhaustion.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Commonmark
View allCross-site scripting (XSS) vulnerability in the PHP League CommonMark library before 0.18.3 allows remote attackers to i
Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18
Quadratic CPU exhaustion in league/commonmark 2.0.0-2.8.3 allows unauthenticated remote attackers to deny service by sub
Quadratic-time algorithmic complexity in league/commonmark's Attributes extension exposes PHP applications to remote den
Quadratic parsing complexity in league/commonmark (thephpleague/commonmark, versions ≥1.5.0 and <2.9.1) allows unauthent
Three independent super-linear parsing paths in league/commonmark before 2.9.1 allow unauthenticated remote attackers to
Quadratic-blowup denial of service in league/commonmark's Footnote extension allows remote unauthenticated attackers to
Quadratic CPU exhaustion in league/commonmark's optional AttributesExtension (versions 1.5.0 through 2.9.2) allows unaut
Quadratic-time denial of service in league/commonmark 2.0.0 through 2.10.1 lets unauthenticated remote attackers exhaust
Quadratic memory and output amplification in league/commonmark's XmlRenderer affects all 2.x releases from 2.0.0 through
Cross-site scripting in league/commonmark 2.7.0-2.9.0 allows unauthenticated attackers to inject arbitrary JavaScript in
The DisallowedRawHtml extension in PHP Commonmark (league/commonmark) versions prior to 2.8.1 can be bypassed by injecti
EUVD-2026-134886
GHSA-mf74-q2p6-h22q
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB