CVE-2026-48988markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-markdown-it | Fix pending | UBUNTU-CVE-2026-48988 | |
| Ubuntu 26.04 | node-markdown-it | Under investigation | UBUNTU-CVE-2026-48988 | |
| Ubuntu 25.10 | node-markdown-it | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-48988 | |
| Ubuntu 24.04 | node-markdown-it | Under investigation | UBUNTU-CVE-2026-48988 | |
| Ubuntu 22.04 | node-markdown-it | Under investigation | UBUNTU-CVE-2026-48988 | |
| Debian 14 | node-markdown-it | Fixed | 22.2.3+dfsg+~12.2.3-5 | DEBIAN-CVE-2026-48988 |
| Debian 13 | node-markdown-it | Fix pending | DEBIAN-CVE-2026-48988 | |
| Debian 12 | node-markdown-it | Fix pending | DEBIAN-CVE-2026-48988 | |
| npm library | markdown-it | Fixed | 14.2.0 | GHSA-6v5v-wf23-fmfq |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- markdown-it: affected: < 14.2.0
References
- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq
- https://github.com/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.