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.
https://security.netapp.com/advisory/ntap-20240621-0006/
https://github.com/jonschlinkert/word-wrap/releases/tag/1.2.4