Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. markdown-it
  4. ›
  5. CVE-2026-48988

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

June 15, 2026

A quadratic time complexity vulnerability exists in markdown-it’s smartquotes rule (enabled via the typographer: true option). An attacker can craft a markdown input consisting of consecutive quotation marks that causes the parser to consume excessive CPU time, leading to denial of service.

References

  • github.com/advisories/GHSA-6v5v-wf23-fmfq
  • github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq
  • nvd.nist.gov/vuln/detail/CVE-2026-48988

Code Behaviors & Features

Detect and mitigate CVE-2026-48988 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 14.2.0

Fixed versions

  • 14.2.0

Solution

Upgrade to version 14.2.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-407: Inefficient Algorithmic Complexity

Source file

npm/markdown-it/CVE-2026-48988.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:50 +0000.