CVEfocus › CVE database › CVE-2026-48988

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

CVSS 5.3 MediumEPSS 0.4% (higher than 29% of CVEs)Published 2026-06-17Updated 2026-06-18Assigner: GitHub_M

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.

CWE-400

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
3Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-markdown-itFix pendingUBUNTU-CVE-2026-48988
Ubuntu 26.04node-markdown-itUnder investigationUBUNTU-CVE-2026-48988
Ubuntu 25.10node-markdown-itWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-48988
Ubuntu 24.04node-markdown-itUnder investigationUBUNTU-CVE-2026-48988
Ubuntu 22.04node-markdown-itUnder investigationUBUNTU-CVE-2026-48988
Debian 14node-markdown-itFixed22.2.3+dfsg+~12.2.3-5DEBIAN-CVE-2026-48988
Debian 13node-markdown-itFix pendingDEBIAN-CVE-2026-48988
Debian 12node-markdown-itFix pendingDEBIAN-CVE-2026-48988
npm librarymarkdown-itFixed14.2.0GHSA-6v5v-wf23-fmfq

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.