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.
Remediation
References
https://www.npmjs.com/package/trim-newlines
https://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1
https://security.netapp.com/advisory/ntap-20210702-0007/
https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html
Related Vulnerabilities
CVE-2022-24771 Vulnerability in npm package node-forge
CVE-2021-23386 Vulnerability in npm package dns-packet
CVE-2019-15903 Vulnerability in npm package dbus
CVE-2022-39366 Vulnerability in maven package io.acryl:datahub-client
CVE-2023-50732 Vulnerability in maven package org.xwiki.platform:xwiki-platform-index-tree-macro