CVE-2026-48988

markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations

MEDIUM
5.3
CVSS Score
Published: June 17, 2026 at 08:54 PM UTC
Updated: June 27, 2026 at 11:41 AM UTC
2 products affected across 2 vendorsMarkdown ITIT Project Markdown IT

Using markdown-it by markdown-it?

Get instant alerts when new vulnerabilities affect markdown-it - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.4%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 14.2.0
Affected range stops below 14.2.0, so it looks safe — our inference, not a vendor statement
v < 14.2.0
Affected range stops below 14.2.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-400

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card