Skip to main content

Node markdown it: markdown-it is a Markdown parser. (CVE-2026-48988)

0
Medium
Published: 06/17/2026 (06/17/2026, 21:16:00 UTC)
Source: GCVE Database
Product: node-markdown-it

Description

markdown-it versions 14.1.1 and below have a denial-of-service vulnerability triggered when the typographer option is enabled. The vulnerability arises from quadratic time complexity in the smartquotes rule due to repeated string modifications, leading to excessive CPU usage. This can allow attackers to degrade or disrupt service availability. The issue is fixed in version 14.2.0.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

Ubuntu:22.04:LTSmore threats →ghsa
node-markdown-it
pkg:deb/ubuntu/node-markdown-it?arch=source&distro=jammy
Affected versions
=10.0.0+dfsg-2=10.0.0+dfsg-3=10.0.0+dfsg-3.1=10.0.0+dfsg-4=10.0.0+dfsg-5=10.0.0+dfsg-6
Ubuntu:24.04:LTSmore threats →ghsa
node-markdown-it
pkg:deb/ubuntu/node-markdown-it?arch=source&distro=noble
Affected versions
=22.2.3+dfsg+~12.2.3-2
Ubuntu:25.10more threats →ghsa
node-markdown-it
pkg:deb/ubuntu/node-markdown-it?arch=source&distro=questing
Affected versions
=22.2.3+dfsg+~12.2.3-2
Ubuntu:26.10more threats →ghsa
node-markdown-it
pkg:deb/ubuntu/node-markdown-it?arch=source&distro=stonking
Affected versions
=22.2.3+dfsg+~12.2.3-4=22.2.3+dfsg+~12.2.3-5
Ubuntu:26.04:LTSmore threats →ghsa
node-markdown-it
pkg:deb/ubuntu/node-markdown-it?arch=source&distro=resolute
Affected versions
=22.2.3+dfsg+~12.2.3-2=22.2.3+dfsg+~12.2.3-4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 01:04:47 UTC

Technical Analysis

The markdown-it Markdown parser versions 14.1.1 and earlier contain a denial-of-service vulnerability when the typographer feature is enabled. The vulnerability is caused by the smartquotes rule performing repeated string modifications using replaceAt(), which has O(n) complexity per quote character, resulting in an overall quadratic O(n^2) processing time. This inefficiency can be exploited by attackers supplying quote-heavy markdown input to cause excessive CPU consumption and service disruption. The typographer option is disabled by default but often enabled in production environments for smart typography. The vulnerability is resolved in version 14.2.0.

Potential Impact

An attacker can cause a denial-of-service condition by submitting markdown input with many quote characters when typographer is enabled, leading to excessive CPU consumption and potential service disruption. There is no impact on confidentiality or integrity.

Mitigation Recommendations

Upgrade markdown-it to version 14.2.0 or later, where this denial-of-service vulnerability is fixed. If upgrading is not immediately possible, consider disabling the typographer option to prevent exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-48988
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f61b2cdf04f656664195

Added to database: 10/17/2026, 22:26:35 UTC

Last enriched: 10/18/2026, 01:04:47 UTC

Last updated: 10/18/2026, 01:04:47 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses