Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. markdown-it-toc-and-anchor
  4. ›
  5. GMS-2020-368

GMS-2020-368: Denial of Service in markdown-it-toc-and-anchor

September 1, 2020 (updated September 24, 2021)

All versions of markdown-it-toc-and-anchor are vulnerable to Denial of Service. Parsing markdown containing **text**+@[toc] causes the application to enter and infinite loop. No fix is currently available. Consider using an alternative module until a fix is made available.

References

  • github.com/advisories/GHSA-x6m6-5hrf-fh6r
  • github.com/medfreeman/markdown-it-toc-and-anchor
  • snyk.io/vuln/SNYK-JS-MARKDOWNITTOCANDANCHOR-73500
  • www.npmjs.com/advisories/749

Code Behaviors & Features

Detect and mitigate GMS-2020-368 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.2.0

Fixed versions

  • 4.2.0

Solution

Upgrade to version 4.2.0 or above.

Source file

npm/markdown-it-toc-and-anchor/GMS-2020-368.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:18 +0000.