VULNERABILITY INTELLIGENCE
CVE-2026-48988
CVSS score5.3 MEDIUM
EPSS probability0.38%
CISA KEVNot currently listed
Published2026-06-17
Last modified2026-06-24
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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.
Weakness classification
- security-advisories@github.com: CWE-400
Primary references
- security-advisories@github.com — Patch
- security-advisories@github.com — Exploit, Mitigation, Vendor Advisory
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 — Exploit, Mitigation, Vendor Advisory