{"answers":{"affected":"2 open source packages ship an affected version, including markdown-it. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48988 exists.","fix":"Upgrade markdown-it to 14.2.0 or later.","what":"CVE-2026-48988 is a medium-severity denial of service vulnerability in markdown-it, published on 17 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-48988 and fix it if it is affected.\n\nWhat it is: CVE-2026-48988 is a medium-severity denial of service vulnerability in markdown-it, published on 17 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-48988 exists.\n\nAffected packages and fixed versions:\n- markdown-it (npm): affected all versions; fixed in 14.2.0\n- markdown-it (npm): affected all versions; fixed in 14.2.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-48988/ (Markdown: https://insights.sbomify.com/CVE-2026-48988/index.md)","id":"CVE-2026-48988","markdown":"https://insights.sbomify.com/CVE-2026-48988/index.md","name":"CVE-2026-48988","record":{"aliases":["CLEANSTART-2026-EO06774","CLSA-2026-1787916789","CLSA-2026-1790161417","CLSA-2026-1790598013","CLSA-2026-1792369116","CLSA-2026-1792451528","DEBIAN-CVE-2026-48988","ECHO-8bc4-9be0-6bd8","GHSA-6v5v-wf23-fmfq","MINI-6q6w-c5ww-pxwv","MINI-79gr-xrqf-9xxc","MINI-8fx6-26f8-vhqf","MINI-8mqq-r4f3-grgp","MINI-8pr5-95j3-p5ff","MINI-94qf-w7cc-hv65","MINI-c6f6-j95g-5vfq","MINI-p449-wr5f-r82g","MINI-rr4r-w44p-vm7g","MINI-vf4m-2rp6-77v6","MINI-x3fv-f728-v28v","ROOT-APP-NPM-CVE-2026-48988","UBUNTU-CVE-2026-48988"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Markdown parsing library","requires_auth":"none","summary":"Attackers can cause denial of service via CPU exhaustion in markdown-it when the typographer option is enabled.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"markdown-it","vendor":"markdown-it_project"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"markdown-it is a Markdown parser. Versions 14.1.1 and below contain a denial-of-service vulnerability when typographer: true is enabled, due to quadratic (O(n^2)) processing in the smartquotes rule. The issue stems from repeatedly modifying strings with replaceAt(), which performs O(n) slicing and concatenation per quote character. This can cause excessive CPU consumption when parsing quote-heavy, user-supplied markdown and may let attackers degrade or disrupt service availability. Although typographer is disabled by default, many production apps enable it for smart typography, making the issue relevant. This issue has been fixed in version 14.2.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations","id":"CVE-2026-48988","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Windows-MCP: HTTP transports expose unauthenticated PowerShell control with wildcard CORS","id":"CVE-2026-48989"},"packages":[{"ecosystem":"npm","fixed":["14.2.0"],"introduced":["0"],"last_affected":[],"package":"markdown-it","purl":null,"source":"GHSA-6v5v-wf23-fmfq"},{"ecosystem":"npm","fixed":["14.2.0"],"introduced":["0"],"last_affected":[],"package":"markdown-it","purl":"pkg:npm/markdown-it","source":"GHSA-6v5v-wf23-fmfq"}],"prev":{"headline":"pyLoad: Unbounded Memory Growth Leading to DoS and Potential DDoS in EventManager","id":"CVE-2026-48987"},"products":["markdown-it"],"published":"2026-06-17","related":[{"cvss_score":6.9,"headline":"markdown-it is has a Regular Expression Denial of Service (ReDoS)","id":"CVE-2026-2327","kev_date_added":null,"published":"2026-02-12"},{"cvss_score":6.9,"headline":"Markdown-it 14.1.0 - Cross-site scripting (XSS)","id":"CVE-2025-7969","kev_date_added":null,"published":"2025-08-21"},{"cvss_score":5.3,"headline":"Uncontrolled Resource Consumption in markdown-it","id":"CVE-2022-21670","kev_date_added":null,"published":"2022-01-10"},{"cvss_score":5.3,"headline":"Cross-site scripting in n/a","id":"CVE-2015-3295","kev_date_added":null,"published":"2017-06-07"},{"cvss_score":3.5,"headline":"markdown-it html_re.js redos","id":"CVE-2015-10005","kev_date_added":null,"published":"2022-12-27"}],"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":"US public information, NVD API terms","name":"NVD"},{"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-06-18","vendors":["markdown-it"]},"summary":"Attackers can cause denial of service via CPU exhaustion in markdown-it when the typographer option is enabled.","url":"https://insights.sbomify.com/CVE-2026-48988/"}