Skip to content
OpenAdvisories
Medium · 5.3 CVE-2022-21670 EUVD-2022-0488GHSA-6vfc-qv3f-vr6c

Uncontrolled Resource Consumption in markdown-it

Published Jan 10, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

markdown-it is a Markdown parser. Prior to version 1.3.2, special patterns with length greater than 50 thousand characterss could slow down the parser significantly. Users should upgrade to version 12.3.2 to receive a patch. There are no known workarounds aside from upgrading.

Affected products

VendorProductAffectedFixed
markdown-it markdown-it < 12.3.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-markdown-it 10.0.0+dfsg-6 —
Debian 13 node-markdown-it 10.0.0+dfsg-6 —
Debian 12 node-markdown-it 10.0.0+dfsg-6 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-markdown-it No fix yet —
Ubuntu 26.04 LTS node-markdown-it No fix yet —
Ubuntu 25.10 node-markdown-it No fix yet —
Ubuntu 24.04 LTS node-markdown-it No fix yet —
Ubuntu 22.04 LTS node-markdown-it No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm markdown-it < 12.3.2 12.3.2 GHSA-6vfc-qv3f-vr6c

References