Vulnerability library
Security checkJanuary 09, 2023

Regular Expression Denial of Service in markdown

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmmarkdown

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

All versions of markdown are vulnerable to Regular Expression Denial of Service (ReDoS). The markdown.toHTML() function has significantly degraded performance when parsing long strings containing underscores. This may lead to Denial of Service if the parser accepts user input.

Recommendation

No fix is available yet. Followings are affected versions:

  • >= 0.0.0

References

Could your website be exposed too?

SmartScanner can check your website for Regular Expression Denial of Service in markdown and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023