{"id":2689,"cve":"CVE-2026-118694","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-118694\/","cwe":"CWE-407","cwe_number":407,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/407","cvss_score":8.7,"published":"2026-10-28","owasp":"A06 Vulnerable and Outdated Components","odc":"Timing\/Serialization","cdc":"Timing Issues","category":"Resource Management","subcategory":"Resource Exhaustion","scope":"Remote","impact":"Denial of Service (DoS)","summary":"Denial of service via unclosed inline links causing quadratic CPU usage.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-118694\/","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.","solution":"Upgrade python\u2011markdown2 to version\u202f2.5.6 (or any newer release) which fixes the unclosed inline\u2011link DoS vulnerability.","affected_component":"Python","fixed_by_upgrading":true,"vulnerable_code":"import markdown2\n\ndef render_markdown(text: str) -> str:\n    # VULNERABLE: unbounded rescanning of incomplete inline links\n    parser = markdown2.Markdown()\n    return parser.convert(text)\n","patched_code":"import markdown2\n\ndef render_markdown(text: str) -> str:\n    # FIX: disable link pattern processing to avoid quadratic rescanning\n    parser = markdown2.Markdown(extras={\"link_patterns\": False})\n    return parser.convert(text)\n","payload_needed":true,"payload":null,"payload_status":"model_refused","published_fix":[{"repository":"trentm\/python-markdown2","commit_url":"https:\/\/github.com\/trentm\/python-markdown2\/pull\/751","commit_subject":"Fix quadratic time for unclosed inline-link parentheses","units":[{"file":"lib\/markdown2.py","function":"LinkProcessor.parse_inline_anchor_or_image"},{"file":"lib\/markdown2.py","function":"Markdown._find_balanced"}]}],"references":null}