VulnerabilityModified
CVE-2022-25858
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.
HIGH 7.5EPSS 3.21%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.21%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 3.21% probability · 87th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-1333
- Affected
- terser/terser
- Source
- report@snyk.io
References
- https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135Broken Link
- https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76bPatch, Third Party Advisory
- https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722Exploit, Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-TERSER-2806366Exploit, Patch, Third Party Advisory
- https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135Broken Link
- https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76bPatch, Third Party Advisory
- https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722Exploit, Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-TERSER-2806366Exploit, Patch, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.