medium5.3
CVE-2023-26115
word-wrap vulnerable to Regular Expression Denial of Service
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | word-wrap | < 1.2.4 | 1.2.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Word-Wrap Project | Word-Wrap | before 1.2.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/jonschlinkert/word-wrap/blob/master/index.js%23L39
- https://github.com/jonschlinkert/word-wrap/releases/tag/1.2.4
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-4058657
- https://security.snyk.io/vuln/SNYK-JS-WORDWRAP-3149973
- https://github.com/advisories/GHSA-j8xg-fqg3-53r7
- https://nvd.nist.gov/vuln/detail/CVE-2023-26115
- https://github.com/jonschlinkert/word-wrap/blob/master/index.js#L39
- https://github.com/jonschlinkert/word-wrap/commit/420dce9a2412b21881202b73a3c34f0edc53cb2e
- https://security.netapp.com/advisory/ntap-20240621-0006