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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
markdown-itnpm | < 14.2.0 | 14.2.0 |
Affected products
17<= 14.1.1+ 1 more
- (no CPE)range: <= 14.1.1
- cpe:2.3:a:markdown-it_project:markdown-it:*:*:*:*:*:*:*:*range: <14.2.0
- osv-coords15 versionspkg:apk/chainguard/gitlab-rails-ce-19.3pkg:apk/chainguard/gitlab-rails-ce-fips-19.3pkg:apk/chainguard/kibana-8.19pkg:apk/chainguard/kibana-8.19-bitnamipkg:apk/chainguard/kibana-8.19-iamguardedpkg:apk/chainguard/kibana-9.2pkg:apk/chainguard/kibana-9.2-iamguardedpkg:apk/chainguard/kibana-9.4pkg:apk/chainguard/kibana-9.4-iamguardedpkg:apk/chainguard/renovatepkg:apk/chainguard/semaphorepkg:apk/chainguard/vitess-24pkg:apk/wolfi/renovatepkg:apk/wolfi/vitess-24pkg:npm/markdown-it
< 19.3.1-r6+ 14 more
- (no CPE)range: < 19.3.1-r6
- (no CPE)range: < 19.3.1-r3
- (no CPE)range: < 8.19.17-r1
- (no CPE)range: < 8.19.17-r1
- (no CPE)range: < 8.19.17-r1
- (no CPE)range: < 9.2.8-r13
- (no CPE)range: < 9.2.8-r13
- (no CPE)range: < 9.4.2-r6
- (no CPE)range: < 9.4.2-r6
- (no CPE)range: < 43.249.5-r2
- (no CPE)range: < 2.18.12-r2
- (no CPE)range: < 24.0.1-r4
- (no CPE)range: < 43.249.5-r2
- (no CPE)range: < 24.0.1-r4
- (no CPE)range: < 14.2.0
Patches
Vulnerability mechanics
References
3- github.com/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5nvdPatch
- github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfqnvdExploitMitigationVendor AdvisoryWEB
- github.com/advisories/GHSA-6v5v-wf23-fmfqghsaADVISORY
News mentions
0No linked articles in our index yet.