Live threats

All CVEs / Markdown-it Project

CVE-2022-21670Markdown-it Project Markdown-it

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Jan 10, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Markdown-it.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm markdown-it < 12.3.2 12.3.2 npm install markdown-it@12.3.2

Per OSV / GitHub Advisories (GHSA-6vfc-qv3f-vr6c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
markdown-it_projectmarkdown-it≤ 12.3.1

Official sources

References

Links published by the sources. Open them with care.