CVE-2026-48988 json
markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations
published 2026-06-15 4 mo ago modified 2026-09-10 1 mo ago also GHSA-6v5v-wf23-fmfq , EUVD-2026-37799
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm markdown-it 14.2.0
- markdown-it_project markdown-it 14.2.0
- node-markdown-it Debian 14 22.2.3+dfsg+~12.2.3-5
debian advisories DEBIAN-CVE-2026-48988
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-48988 updated cvss 5.3
markdown-it: markdown-it: Denial of Service via quadratic processing of smartquotes with typographer enabled
-
Red Hat Build of Podman Desktop rh-podman-desktop.git Red Hat Ceph Storage 9 thrift Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9, rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend, rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend, rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend-module-loki, rhdh/red-hat-developer-hub-backstage-plugin-scaffolder-backend-module-orchestrator Red Hat OpenShift AI (RHOAI) rhoai/odh-feature-server-rhel9, rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 Red Hat OpenShift Dev Spaces devspaces/code-rhel9, devspaces/openvsx-rhel9, devspaces/pluginregistry-rhel9 Red Hat Self-service automation portal 2 ansible-automation-platform/automation-portal, ansible-automation-platform/bootc-automation-portal-rhel9affected: no fix available “Fix deferred”
-
Red Hat Hardened Images rust, libgit2not affected: component not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 4 mo ago
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | markdown-it | <14.2.0 |
14.2.0 |
Affected products
- markdown-it markdown-it
Classification
References
-
github.com
/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5
patch
-
github.com
/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq
exploit, web, mitigation, vendor-advisory
-
github.com
/markdown-it/markdown-it
package
Sources
- CVE List CVE-2026-48988
- GitHub Advisory GHSA-6v5v-wf23-fmfq
- NVD CVE-2026-48988
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.