Description
commonmark versions from 2.0.0 before 2.8.4 contain a denial of service vulnerability in XmlRenderer that emits depth-proportional indentation for every XML tag. Attackers can provide deeply nested Markdown or AST structures to cause quadratic memory consumption and output amplification, exhausting server resources.
Published: 2026-09-07
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

The vulnerability exists in the XmlRenderer component of thephpleague/commonmark, affecting versions 2.0.0 through 2.8.3. The renderer generates depth‑proportional indentation for each XML tag it processes. An attacker can supply deeply nested Markdown or abstract syntax tree structures, forcing the renderer to allocate memory quadratic in the depth of nesting and produce output that shares the same nested structure. This can exhaust server memory and CPU resources, leading to denial of service.

Affected Systems

Affected systems include all deployments of thephpleague/commonmark 2.0.0‑2.8.3. The library is used by PHP applications that import CommonMark for Markdown parsing or rendering to XML. Any installation of a library within that range is vulnerable; no sub‑version details are provided beyond the range.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS is not available, so the current exploitation probability is unknown; however, the deterministic nature of the misbehavior makes success likely when an attacker can feed crafted input. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to supply user‑generated Markdown or AST content that the renderer processes, which could occur through any endpoint that accepts markdown for XML output. In environments where the renderer is exposed to untrusted input, the risk of resource exhaustion is significant.

Generated by OpenCVE AI on September 7, 2026 at 15:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade thephpleague/commonmark to version 2.8.4 or later, which removes the vulnerability in XmlRenderer.
  • If upgrading is not feasible immediately, disable XML rendering or restrict the depth of XML tags in your application configuration.
  • Implement input validation to reject or truncate markdown or AST structures that exceed a safe nesting depth before they reach the renderer.

Generated by OpenCVE AI on September 7, 2026 at 15:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 10 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 07 Sep 2026 13:00:00 +0000

Type Values Removed Values Added
Description commonmark versions from 2.0.0 before 2.8.4 contain a denial of service vulnerability in XmlRenderer that emits depth-proportional indentation for every XML tag. Attackers can provide deeply nested Markdown or AST structures to cause quadratic memory consumption and output amplification, exhausting server resources.
Title commonmark 2.0.0 before 2.8.4 Denial of Service via XML
First Time appeared Thephpleague
Thephpleague commonmark
Weaknesses CWE-405
CPEs cpe:2.3:a:thephpleague:commonmark:*:*:*:*:*:*:*:*
Vendors & Products Thephpleague
Thephpleague commonmark
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Thephpleague Commonmark
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-10T15:04:06.858Z

Reserved: 2026-09-07T12:34:31.457Z

Link: CVE-2026-86432

cve-icon Vulnrichment

Updated: 2026-09-10T14:22:39.542Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-07T13:20:42.600

Modified: 2026-09-10T16:18:02.793

Link: CVE-2026-86432

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-07T16:00:13Z

Weaknesses
  • CWE-405

    Asymmetric Resource Consumption (Amplification)