Description
The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1Patch, Release Notes
- https://lists.debian.org/debian-lts-announce/2022/12/msg00033.htmlMailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210702-0007/Third Party Advisory
- https://www.npmjs.com/package/trim-newlinesProduct
- https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1Patch, Release Notes
- https://lists.debian.org/debian-lts-announce/2022/12/msg00033.htmlMailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210702-0007/Third Party Advisory
- https://www.npmjs.com/package/trim-newlinesProduct
Timeline
- Published
- May 28, 2021
- Last modified
- Jun 17, 2026
- NVD status
- Modified