CVE-2026-88753

markdown2: markdown2: Denial of Service via crafted Markdown document

Published Oct 15, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 7.5, the vulnerability falls into the high severity range. The EPSS score of < 1% 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.

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 20, 2026 at 12:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-400
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'}

ssvc

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

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

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

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.

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 20, 2026, 2:32 AM
Reserved
Sep 10, 2026, 12:00 AM
Status
Deferred
Published
Oct 15, 2026, 4:18 PM
Modified
Oct 20, 2026, 3:17 AM
Severity
Moderate
Public date
Oct 15, 2026, 12:00 AM