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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | word-wrap | — | — |
| — | org.webjars.npm:word-wrap | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | js-jquery | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | js-jquery | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | word-wrap | < 1.2.4 | 1.2.4 | GHSA-j8xg-fqg3-53r7 |
Advisories 2
- WID-SEC-2023-1738 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 14, 2025
- WID-SEC-2023-2356 IBM QRadar SIEM: Mehre Schwachstellen BSI CERT-Bund (WID) · Sep 28, 2023
References
- https://security.snyk.io/vuln/SNYK-JS-WORDWRAP-3149973
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-4058657
- 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/