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.
https://security.netapp.com/advisory/ntap-20210702-0007/
https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html
https://www.npmjs.com/package/trim-newlines
https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1
Source: Mitre, NVD
Published: 2021-05-28
Updated: 2024-11-21
Base Score: 5
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P
Severity: Medium
Base Score: 7.5
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity: High
EPSS: 0.01549