{"id":"CVE-2026-48988","published":"2026-06-17T20:54:06Z","modified":"2026-06-18T19:41:43Z","title":"markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations","vendor":"markdown-it","product":"markdown-it","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00379,"percentile":0.32679,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":6.54},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"markdown-it","affectedVersions":[{"vendor":"markdown-it","product":"markdown-it","versions":["< 14.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-18T19:41:23.675536Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"markdown-it","vulnerableRanges":["<14.2.0"],"patched":["14.2.0"],"from":["GHSA-6v5v-wf23-fmfq"],"provenance":"source"}],"summary":{"text":"The markdown-it Markdown parser, in versions 14.1.1 and below, has a quadratic-complexity flaw in its smartquotes rule, which repeatedly rebuilds strings via replaceAt() and so consumes excessive CPU when parsing quote-heavy input. An attacker who can supply markdown to a parser with typographer: true enabled (a non-default setting) can degrade or disrupt availability over the network with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:55Z"},"euvd":{"id":"EUVD-2026-37799","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2015-10005","published":"2022-12-27","fixed":"3.0.0","kev":false},{"cve":"CVE-2022-21670","published":"2022-01-10","fixed":"12.3.2","kev":false},{"cve":"CVE-2026-2327","published":"2026-02-12","fixed":"14.1.1","kev":false,"link":{"from":"CVE-2026-2327","to":"CVE-2026-48988","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:markdown-it","fromFixed":"14.1.1","toFixed":"14.2.0","daysApart":125}]}},{"cve":"CVE-2026-48988","published":"2026-06-17","fixed":"14.2.0","kev":false},{"cve":"CVE-2026-111759","published":"2026-10-19","fixed":"15.0.2","kev":false,"link":{"from":"CVE-2026-48988","to":"CVE-2026-111759","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:markdown-it","fromFixed":"14.2.0","toFixed":"14.3.2","daysApart":124},{"kind":"similar","provenance":"machine","score":0.37,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-111758","published":"2026-10-20","fixed":"15.0.3","kev":false},{"cve":"CVE-2026-111766","published":"2026-10-19","fixed":"15.0.3","kev":false}],"package":"npm:markdown-it"}}