medium5.3
CVE-2021-23425
Uncontrolled Resource Consumption in trim-off-newlines
Impact
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | trim-off-newlines | < 1.0.3 | 1.0.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Trim-Off-Newlines Project | Trim-Off-Newlines | before 1.0.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197
- https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850
- https://github.com/advisories/GHSA-38fc-wpqx-33j7
- https://nvd.nist.gov/vuln/detail/CVE-2021-23425
- https://github.com/stevemao/trim-off-newlines/pull/3