7.5High

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

trentm python-markdown2 Published: (22 days ago)

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.

Weakness (CWE): CWE-407

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
python-markdown2 project python-markdown2 ≤ 2.5.5
trentm python-markdown2 ≤ 2.5.5

References and patches