word-wrap@1.1.0 vulnerabilities

Wrap words to a specified length.

Direct Vulnerabilities

Known vulnerabilities in the word-wrap package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
Regular Expression Denial of Service (ReDoS)

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression within the result variable.


The regex is vulnerable on its own, but the vulnerable function is not reachable as shipped in the package.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade word-wrap to version 1.2.4 or higher.