Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. markdown-it
  4. ›
  5. CVE-2022-21670

CVE-2022-21670: Uncontrolled Resource Consumption in markdown-it

January 10, 2022 (updated July 24, 2023)

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

References

  • github.com/advisories/GHSA-6vfc-qv3f-vr6c
  • github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101
  • github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6c
  • nvd.nist.gov/vuln/detail/CVE-2022-21670

Code Behaviors & Features

Detect and mitigate CVE-2022-21670 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 12.3.1

Fixed versions

  • 12.3.2

Solution

Upgrade to version 12.3.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/markdown-it/CVE-2022-21670.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:23 +0000.