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.
The product does not properly control the allocation and maintenance of a limited resource.
Link | Tags |
---|---|
https://www.npmjs.com/package/trim-newlines | product |
https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1 | patch release notes |
https://security.netapp.com/advisory/ntap-20210702-0007/ | third party advisory |
https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html | third party advisory mailing list |