Bug 2490150 (CVE-2026-48988) - CVE-2026-48988 markdown-it: markdown-it: Denial of Service via quadratic processing of smartquotes with typographer enabled
Summary: CVE-2026-48988 markdown-it: markdown-it: Denial of Service via quadratic proc...
Keywords:
Status: NEW
Alias: CVE-2026-48988
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2526255 2526257 2526258 2526259 2526260 2526261 2526256 2526262
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-17 21:01 UTC by OSIDB Bzimport
Modified: 2026-08-31 11:19 UTC (History)
31 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-17 21:01:16 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.