CVE-2022-25858: Regular Expression Denial of Service (ReDoS)
A vulnerability was found in the terser package. Affected versions of this package are vulnerable to Regular expression denial of service (ReDoS) attacks, affecting system availability.
Other sources
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/terserto a version that resolves this vulnerability.Fixed in 4.8.1 - Upgrade
Upgrade
redhat/terserto a version that resolves this vulnerability.Fixed in 5.14.2 - Upgrade
Upgrade
debian/node-terserto a version that resolves this vulnerability.Fixed in 5.16.5-2Fixed in 5.38.0-1Fixed in 5.51.2-2 - Upgrade
Upgrade
debian/node-terserto a version that resolves this vulnerability.Fixed in 4.8.1-1 - Upgrade
Upgrade
terserto a version that resolves this vulnerability.Fixed in 4.8.1 - Upgrade
Upgrade
terserto a version that resolves this vulnerability.Fixed in 5.14.2 - Upgrade
Upgrade
terserto a version that resolves this vulnerability.Fixed in 5.0.0
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2022-25858?
CVE-2022-25858 is classified as a moderate severity vulnerability due to its potential for denial of service attacks.
How do I fix CVE-2022-25858?
To mitigate CVE-2022-25858, upgrade Terser to version 4.8.1 or 5.14.2 or later.
What applications are impacted by CVE-2022-25858?
CVE-2022-25858 affects Terser versions prior to 4.8.1 and versions between 5.0.0 and 5.14.2.
What type of vulnerability is CVE-2022-25858?
CVE-2022-25858 is identified as a Regular Expression Denial of Service (ReDoS) vulnerability.
Is CVE-2022-25858 applicable to all Node.js applications?
CVE-2022-25858 specifically impacts applications using vulnerable versions of the Terser package, not all Node.js applications.