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

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-10-28T21:11:20.814Z
- Modified: 2026-10-29T18:17:28.427Z
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- trentm python-markdown2: up to 2.5.5

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/trentm/python-markdown2/issues/750> (issue-tracking)
- <https://github.com/trentm/python-markdown2> (product)
- <https://github.com/trentm/python-markdown2/blob/2.5.5/lib/markdown2.py#L1478-L1492> (technical-description)
- <https://github.com/trentm/python-markdown2/blob/2.5.5/lib/markdown2.py#L3029> (technical-description)
- <https://github.com/trentm/python-markdown2/pull/751> (issue-tracking, patch)
- <https://www.vulncheck.com/advisories/python-markdown2-through-2.5.5-denial-of-service-via-unclosed-inline-link-destinations> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-118694](https://www.cve.org/CVERecord?id=CVE-2026-118694), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-118694](https://nvd.nist.gov/vuln/detail/CVE-2026-118694), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-118694 · Whole record: https://cve.day/CVE-2026-118694.json · Rebuilt by cve.day 2026-11-25T22:59:47.699Z
