CVE-2026-48988: markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations
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
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 →