CVE catalog

CVE-2026-48988

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. T

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.38% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-markdown-itsid22.2.3+dfsg+~12.2.3-5fixed
Debiannode-markdown-itforky22.2.3+dfsg+~12.2.3-5fixed
Debiannode-markdown-ittrixie22.2.3+dfsg+~12.2.3-2vulnerable
Debiannode-markdown-itbookworm22.2.3+dfsg+~12.2.3-2vulnerable
Cpenode-markdown-itNot reportedNot reportedvulnerable
Cpemarkdown-itNot reported14.2.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-markdown-itsourcesid22.2.3+dfsg+~12.2.3-5not yet assignedNot reported[1140349]
Debiannode-markdown-itsourceforky22.2.3+dfsg+~12.2.3-5not yet assignedNot reported[1140349]
Debiannode-markdown-itsourcetrixie(unfixed)not yet assignedNot reported[1140349]
Debiannode-markdown-itsourcebookworm(unfixed)not yet assignedNot reported[1140349]
Cpemarkdown-itcpeNot reported14.2.0Not reportedNot reportedNot reported

[Debian bug #1140349]

Notes

[trixie] node-markdown-it: Minor issue [bookworm] node-markdown-it: Minor issue; quadratic smartquotes DoS, needs non-default typographer:true

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 22.2.3+dfsg+~12.2.3-2 · all · bookworm

      Affected

      nvd · node-markdown-it · debian · bookworm; nvd · node-markdown-it · debian · 12

    • 22.2.3+dfsg+~12.2.3-2 · all · bookworm

      Affected

      nvd · node-markdown-it · debian · bookworm; nvd · node-markdown-it · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 22.2.3+dfsg+~12.2.3-2 · all · trixie

      Affected

      nvd · node-markdown-it · debian · 13

    • 22.2.3+dfsg+~12.2.3-2 · all · trixie

      Affected

      nvd · node-markdown-it · debian · 13

Observed:

References