CVE-2026-118694
python-markdown2 through 2.5.5 contains a denial of service …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/trentm/python-markdown2
- github.com/trentm/python-markdown2/blob/2.5.5/lib/markdown2.py#L1478-L1492
- github.com/trentm/python-markdown2/blob/2.5.5/lib/markdown2.py#L3029
- github.com/trentm/python-markdown2/issues/750
- github.com/trentm/python-markdown2/pull/751
- www.vulncheck.com/advisories/python-markdown2-through-2.5.5-denial-of-service-via-unclosed
- nvd.nist.gov/vuln/detail/CVE-2026-118694
- cve.org/CVERecord?id=CVE-2026-118694
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.