Vulnerability library
Security checkFebruary 13, 2025

word-wrap vulnerable to Regular Expression Denial of Service

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

Medium severitynpmword-wrap

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 the package word-wrap are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression within the result variable.

Recommendation

Update the word-wrap package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.2.4
  • Patched version(s): 1.2.4

References

Could your website be exposed too?

SmartScanner can check your website for word-wrap vulnerable to Regular Expression Denial of Service and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 13, 2025