CVE-2026-118694

python-markdown2 through 2.5.5 Denial of Service via Unclosed Inline Link Destinations

Published Oct 28, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
python-markdown2 through 2.5.5 contains a denial of service vulnerability that allows remote users to exhaust CPU by submitting Markdown with unclosed inline link destinations. Attackers can submit repeated '[a](' or '![a](' sequences, causing _find_balanced to rescan the remaining document for each link and consume quadratic CPU time.

Analysis

AI-generated

Technical impact

python-markdown2 through version 2.5.5 contains a denial of service vulnerability that allows remote users to exhaust CPU by submitting Markdown with unclosed inline link destinations. Repeating sequences such as "[a](" or "![a](" cause the internal _find_balanced function to rescan the remaining document for each link, resulting in quadratic CPU consumption. The flaw is categorized as CWEs 407 and 606 and can be triggered without authentication.

Affected Systems

The vulnerable component is python-markdown2 from the Python‑Markdown2 project. All releases up to and including 2.5.5 are affected. The library is commonly embedded in web applications or content management systems that render user‑supplied Markdown, making it a potential attack vector for such services.

Risk and Exploitability

The flaw has a CVSS score of 8.7, indicating high severity. The EPSS score is less than 1%, suggesting that while exploitation is unlikely, it remains possible. The flaw is not listed in the CISA KEV catalog. Attackers can exploit it by submitting crafted Markdown to any service that uses the vulnerable library. The attack does not require authentication and can overwhelm server resources by consuming quadratic CPU time.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest python-markdown2 release that removes the vulnerability.
  • If an upgrade is not possible, validate or sanitize Markdown input to reject unclosed link delimiters before rendering.
  • Apply rate‑limiting or CPU/memory caps to the Markdown processing path to mitigate the impact of a denial‑of‑service attack.

Generated by OpenCVE AI on October 30, 2026 at 14:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description python-markdown2 through 2.5.5 contains a denial of service vulnerability that allows remote users to exhaust CPU by submitting Markdown with unclosed inline link destinations. Attackers can submit repeated '[a](' or '![a](' sequences, causing _find_balanced to rescan the remaining document for each link and consume quadratic CPU time.
Title python-markdown2 through 2.5.5 Denial of Service via Unclosed Inline Link Destinations
First Time appeared Python-markdown2 Project
Python-markdown2 Project python-markdown2
Weaknesses CWE-407
CPEs cpe:2.3:a:python-markdown2_project:python-markdown2:*:*:*:*:*:*:*:*
Vendors & Products Python-markdown2 Project
Python-markdown2 Project python-markdown2
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'}

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-606

    Unchecked Input for Loop Condition

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 5:22 PM
Reserved
Oct 28, 2026, 5:31 PM
Status
Deferred
Published
Oct 28, 2026, 10:17 PM
Modified
Oct 29, 2026, 6:17 PM
Severity
Important
Public date
Oct 28, 2026, 9:11 PM