GitHub Advisoryadvisory · npm
GHSA-x6m6-5hrf-fh6r Denial of Service in markdown-it-toc-and-anchor
HIGH
Official page ↗
- Ecosystem
- npm
- Packages
- markdown-it-toc-and-anchor
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400
- Reviewed
- 2020-08-31
Affected packages
• npm markdown-it-toc-and-anchor: < 4.2.0 → fixed in 4.2.0
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
No fix is currently available. Consider using an alternative module until a fix is made available.
Related
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness