All reports
High

Denial of Service in markdown-it-toc-and-anchor

Affected versions

Affected versions
< 4.2.0
Fixed version
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.

Links

Credits

  • mprpic