{"answers":{"affected":"3 open source packages ship an affected version, including mistune.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49851 exists.","fix":"Upgrade mistune to 3.3.0 or later.","what":"CVE-2026-49851 is a high-severity denial of service vulnerability in lepture mistune, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49851 and fix it if it is affected.\n\nWhat it is: CVE-2026-49851 is a high-severity denial of service vulnerability in lepture mistune, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49851 exists.\n\nAffected packages and fixed versions:\n- mistune (PyPI): affected all versions; fixed in 3.3.0\n- mistune (PyPI): affected all versions; fixed in 3.3.0\n- mistune (PyPI): affected all versions; fixed in 3.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49851/ (Markdown: https://insights.sbomify.com/CVE-2026-49851/index.md)","id":"CVE-2026-49851","markdown":"https://insights.sbomify.com/CVE-2026-49851/index.md","name":"CVE-2026-49851","record":{"aliases":["AZL-91047","DEBIAN-CVE-2026-49851","ECHO-2259-d6c1-3019","GHSA-qcq2-496w-v96p","PYSEC-2026-2652","SUSE-SU-2026:22495-1","UBUNTU-CVE-2026-49851","openSUSE-SU-2026:11180-1","openSUSE-SU-2026:21191-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python Markdown parser","requires_auth":"none","summary":"An attacker can cause CPU exhaustion and denial of service in Mistune by submitting crafted Markdown input with many consecutive brackets.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Mistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. When parsing Markdown containing many consecutive [ characters, parse_link_text repeatedly scans the input using a regex search inside a loop. Each iteration re-scans a large portion of the remaining string, resulting in quadratic-time behavior. An attacker-controlled Markdown input can therefore trigger excessive CPU usage with a very small payload. This vulnerability is fixed in 3.3.0.","ecosystems":["PyPI","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Mistune: Potential DoS via quadratic-time parsing in parse_link_text","id":"CVE-2026-49851","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":7,"n_references":1,"next":{"headline":"joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)","id":"CVE-2026-49852"},"packages":[{"ecosystem":"PyPI","fixed":["3.3.0"],"introduced":["0"],"last_affected":[],"package":"mistune","purl":null,"source":"GHSA-qcq2-496w-v96p"},{"ecosystem":"PyPI","fixed":["3.3.0"],"introduced":["0"],"last_affected":[],"package":"mistune","purl":"pkg:pypi/mistune","source":"GHSA-qcq2-496w-v96p"},{"ecosystem":"PyPI","fixed":["3.3.0"],"introduced":["0"],"last_affected":[],"package":"mistune","purl":"pkg:pypi/mistune","source":"PYSEC-2026-2652"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["3.1.3-160000.4.1"],"introduced":["0"],"last_affected":[],"package":"python-mistune","purl":"pkg:rpm/suse/python-mistune\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:22495-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["3.1.3-160000.4.1"],"introduced":["0"],"last_affected":[],"package":"python-mistune","purl":"pkg:rpm/suse/python-mistune\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:22495-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["3.1.3-160000.4.1"],"introduced":["0"],"last_affected":[],"package":"python-mistune","purl":"pkg:rpm/opensuse/python-mistune\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21191-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.3.2-1.1"],"introduced":["0"],"last_affected":[],"package":"python-mistune","purl":"pkg:rpm/opensuse/python-mistune\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11180-1"}],"prev":{"headline":"InvoicePlane: Missing CSRF Protection on State-Changing delete Actions","id":"CVE-2026-49850"},"products":["mistune"],"published":"2026-06-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-28","vendors":["lepture"]},"summary":"An attacker can cause CPU exhaustion and denial of service in Mistune by submitting crafted Markdown input with many consecutive brackets.","url":"https://insights.sbomify.com/CVE-2026-49851/"}