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://github.com/sindresorhus/trim-newlines/releases/tag/v4.0.1
https://lists.debian.org/debian-lts-announce/2022/12/msg00033.html
https://security.netapp.com/advisory/ntap-20210702-0007/
https://www.npmjs.com/package/trim-newlines
Related Vulnerabilities
CVE-2021-46708 Vulnerability in npm package swagger-ui
CVE-2022-23539 Vulnerability in maven package org.webjars.npm:jsonwebtoken
CVE-2019-14262 Vulnerability in maven package com.drewnoakes:metadata-extractor
CVE-2021-41086 Vulnerability in npm package jsuites
CVE-2016-6796 Vulnerability in maven package org.apache.tomcat:tomcat-jasper