Skip to main content

league/commonmark EUVDEUVD-2026-134886

| CVE-2026-136615 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-25 VulnCheck GHSA-mf74-q2p6-h22q
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit oversized Markdown to rendering endpoint
  2. Exploit
    Two long emphasis runs bypass max_delimiters_per_line
  3. Execution
    Parser builds deeply nested strong elements
  4. Impact
    Quadratic 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

commonmark 2.6.0 <2.10.8

Affected Packages

euvd commonmark fix: 2.10.8

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

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.5%
Top 66% exploitable
Prevalence
High
very popular PHP Markdown parser used across many web applications and frameworks
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2019-10010 MEDIUM POC
6.1 Mar 24

Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library before 0.18.3 allows remote attackers to i

CVE-2018-20583 MEDIUM POC
6.1 Dec 30

Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18

CVE-2026-86434 HIGH
8.7 Sep 07

Quadratic CPU exhaustion in league/commonmark 2.0.0-2.8.3 allows unauthenticated remote attackers to deny service by sub

CVE-2026-86433 HIGH
8.7 Sep 07

Quadratic-time algorithmic complexity in league/commonmark's Attributes extension exposes PHP applications to remote den

CVE-2026-86429 HIGH
8.7 Sep 07

Quadratic parsing complexity in league/commonmark (thephpleague/commonmark, versions ≥1.5.0 and <2.9.1) allows unauthent

CVE-2026-86430 HIGH
8.7 Sep 07

Three independent super-linear parsing paths in league/commonmark before 2.9.1 allow unauthenticated remote attackers to

CVE-2026-86435 HIGH
8.7 Sep 07

Quadratic-blowup denial of service in league/commonmark's Footnote extension allows remote unauthenticated attackers to

CVE-2026-86428 HIGH
8.7 Sep 07

Quadratic CPU exhaustion in league/commonmark's optional AttributesExtension (versions 1.5.0 through 2.9.2) allows unaut

CVE-2026-105830 HIGH
8.7 Oct 08

Quadratic-time denial of service in league/commonmark 2.0.0 through 2.10.1 lets unauthenticated remote attackers exhaust

CVE-2026-86432 MEDIUM
6.9 Sep 07

Quadratic memory and output amplification in league/commonmark's XmlRenderer affects all 2.x releases from 2.0.0 through

CVE-2026-86431 MEDIUM
6.9 Sep 07

Cross-site scripting in league/commonmark 2.7.0-2.9.0 allows unauthenticated attackers to inject arbitrary JavaScript in

CVE-2026-30838 MEDIUM
6.1 Mar 07

The DisallowedRawHtml extension in PHP Commonmark (league/commonmark) versions prior to 2.8.1 can be bypassed by injecti

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy