Description
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
Update the markdown-it-toc-and-anchor package to the latest compatible version. Followings are version details:
- Affected version(s): < 4.2.0
- Patched version(s): 4.2.0
References
Related Issues
- Regular Expression Denial of Service in markdown - Vulnerability
- Denial of Service in mem - Vulnerability
- Denial of Service in rgb2hex - Vulnerability
- Regular Expression Denial of Service in Acorn - Vulnerability
You might also like:
- Tags:
- npm
- markdown-it-toc-and-anchor
Anything's wrong? Let us know Last updated on December 07, 2023


