CVE-2026-48988
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
- CWE-400: Uncontrolled Resource Consumption
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-06-18 |
Timeline
- 2026-06-15GitHub advisory published (GHSA-6v5v-wf23-fmfq)2 days before publication
- 2026-06-17Published by the CNA20:54 UTC
- 2026-06-18CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-6v5v-wf23-fmfq, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm markdown-it | before 14.2.0 | 14.2.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| markdown-it_project markdown-it | before 14.2.0fixed in 14.2.0 | 14.2.0 |
References
- https://github.com/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5
- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-48988'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-48988'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-48988'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-48988'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).