Description
The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions.
Remediation
References
https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135
https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b
https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722
https://snyk.io/vuln/SNYK-JS-TERSER-2806366
Related Vulnerabilities
CVE-2023-1370 Vulnerability in maven package net.minidev:json-smart
CVE-2021-23566 Vulnerability in npm package nanoid
CVE-2022-35912 Vulnerability in maven package org.grails:grails-databinding
CVE-2019-1010260 Vulnerability in maven package com.github.shyiko:ktlint
CVE-2022-40152 Vulnerability in maven package com.fasterxml.woodstox:woodstox-core