Description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Remediation
References
https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197
https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850
Related Vulnerabilities
CVE-2022-42920 Vulnerability in maven package org.apache.bcel:bcel
CVE-2023-22578 Vulnerability in npm package @sequelize/core
CVE-2019-8331 Vulnerability in maven package org.webjars.bower:bootstrap
CVE-2017-15089 Vulnerability in maven package org.infinispan:infinispan-commons
CVE-2007-5333 Vulnerability in maven package tomcat:tomcat-coyote