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.