Description
A Regular-Expression Denial of Service (ReDoS) in the Markdown2. extract_metadata() function (lib/markdown2.py) of trentm markdown2 through v2.5.5 allows attackers to cause a Denial of Service (DoS) via a crafted Markdown document.
Published: 2026-10-15
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

Impact

The vulnerability is a Regular‑Expression Denial of Service (ReDoS) located in the extract_metadata function of the markdown2 Python library. A crafted Markdown document can force the regex engine into worst‑case exponential backtracking, consuming excessive CPU and memory resources. This results in an application or service that processes Markdown halting or becoming unresponsive, thereby disrupting availability only.

Affected Systems

The affected software is trentm’s markdown2 library, issue identified in versions up to and including 2.5.5. Any application that imports markdown2 and uses the extract_metadata routine is potentially vulnerable.

Risk and Exploitability

With a CVSS score of 5.3, the vulnerability falls into the moderate severity range. The EPSS score of 0.00149 indicates a very low probability of exploitation in the wild, and it is not listed in the CISA KEV catalog, implying no recorded public exploitation to date. The likely attack vector is any user‑supplied Markdown content that triggers the vulnerable extract_metadata routine; an attacker could supply a specially crafted document that forces exponential backtracking in the regular‑expression engine, consuming CPU and memory resources. Successful exploitation would lead to a denial of service by causing the application that parses markdown to become unresponsive or crash, thereby disrupting availability.

Generated by OpenCVE AI on October 16, 2026 at 22:53 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade markdown2 to the latest stable release that eliminates the vulnerable regex in extract_metadata.
  • If an upgrade cannot be performed immediately, enforce strict size limits on Markdown input or reject documents that exceed a safe threshold to avoid triggering resource exhaustion.
  • Disable or replace the extract_metadata functionality with an alternative parsing method or a vetted third‑party library, and monitor application resource usage for signs of excessive consumption.

Generated by OpenCVE AI on October 16, 2026 at 22:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Title markdown2: markdown2: Denial of Service via crafted Markdown document
Weaknesses CWE-1333
References
Metrics threat_severity

None

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'}

threat_severity

Moderate


Thu, 15 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
Description A Regular-Expression Denial of Service (ReDoS) in the Markdown2. extract_metadata() function (lib/markdown2.py) of trentm markdown2 through v2.5.5 allows attackers to cause a Denial of Service (DoS) via a crafted Markdown document.
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-15T15:19:21.380Z

Reserved: 2026-09-10T00:00:00.000Z

Link: CVE-2026-88753

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-15T16:18:22.887

Modified: 2026-10-16T19:56:15.773

Link: CVE-2026-88753

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-15T00:00:00Z

Links: CVE-2026-88753 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T23:00:07Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity