GHSA-x6m6-5hrf-fh6r
HIGH 7.5CVSS 3.1Denial of Service in markdown-it-toc-and-anchor
All versions of markdown-it-toc-and-anchor are vulnerable to Denial of Service. Parsing markdown containing **text**+\n@[toc] causes the application to enter and infinite loop.
Recommendation
No fix is currently available. Consider using an alternative module until a fix is made available.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | markdown-it-toc-and-anchor | < 4.2.0 | 4.2.0 |
References
- https://github.com/medfreeman/markdown-it-toc-and-anchor · PACKAGE
- https://snyk.io/vuln/SNYK-JS-MARKDOWNITTOCANDANCHOR-73500 · WEB
- https://www.npmjs.com/advisories/749 · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Sep 2020)