MediumGHSA-j8xg-fqg3-53r7CVE-2023-26115

word-wrap vulnerable to Regular Expression Denial of Service

Published 22 Jun 2023 · Updated 13 Feb 2025

Affected package

Affected
<1.2.4
Fixed in
1.2.4
Update to the fixed version for your release line, for example:npm install word-wrap@1.2.4

Details

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.

Is GHSA-j8xg-fqg3-53r7 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected word-wrap, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.