Medium severity · published Jun 17, 2026
CVE-2026-48988
markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations
5.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 32% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
markdown-it · markdown-it
< 14.2.0 · source: vendor, NVD
Affected product
MA
markdown-it
markdown-it
More from markdown-it
7.5
CVE-2026-111758
markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression since 14.0)
7.5
CVE-2026-111759
markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes
6.1
CVE-2025-7969
Markdown-it 14.1.0 - Cross-site scripting (XSS)
3.7
CVE-2026-111766
markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled