Description
commonmark versions from 1.5.0 before 2.8.4 contain a denial of service vulnerability in the Footnote extension that fails to deduplicate footnote definitions. Attackers can craft documents with duplicate footnote definitions and references to create quadratic output expansion, consuming excessive memory and CPU to exhaust server resources.
Published: 2026-09-07
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

commonmark implements a footnote extension that is supposed to deduplicate identical footnote definitions. In versions 1.5.0 through 2.8.3 the implementation fails to perform this deduplication, allowing a crafted document to contain many duplicate definitions that, when processed, grow quadratically in size and consume substantial memory and CPU resources. The result is that a server or process parsing such a document can become overwhelmed, stalling or crashing and denying service to legitimate users. The weakness is classified as CWE‑407: Unchecked Loop Condition. The containment is limited to the user of the commonmark library; an attacker must be able to supply or influence the parsed document.

Affected Systems

Thephpleague commonmark library, versions 1.5.0 up to but not including 2.8.4. Systems that incorporate any of these library versions and parse untrusted Markdown content are vulnerable.

Risk and Exploitability

The CVSS score of 8.7 places this vulnerability in the High severity range. EPSS is currently not available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, which suggests there is no publicly known exploit, though the impact potential remains high. Based on the description, the likely attack vector is delivering a malicious Markdown document with duplicate footnote definitions to any service that parses it with the vulnerable commonmark library. The prerequisites are the presence of the vulnerable library and the processing of untrusted content. Without additional mitigations, exploitation can lead to resource exhaustion and service denial.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the commonmark library to version 2.8.4 or newer.
  • Implement input validation to detect and refuse documents with excessive duplicate footnote definitions or restrict the number of footnotes parsed.
  • Run Markdown parsing in a sandboxed or resource‑limited environment, such as a separate process with restrictive CPU and memory limits, to mitigate potential denial of service.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 10 Sep 2026 10: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 1.5.0 before 2.8.4 contain a denial of service vulnerability in the Footnote extension that fails to deduplicate footnote definitions. Attackers can craft documents with duplicate footnote definitions and references to create quadratic output expansion, consuming excessive memory and CPU to exhaust server resources.
Title commonmark 1.5.0 before 2.8.4 Denial of Service via Footnote
First Time appeared Thephpleague
Thephpleague commonmark
Weaknesses CWE-407
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'}


Subscriptions

Thephpleague Commonmark
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-09T14:32:07.292Z

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

Link: CVE-2026-86435

cve-icon Vulnrichment

Updated: 2026-09-09T14:31:57.195Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-09-09T15:17:18.217

Link: CVE-2026-86435

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity