Vulnerability in Terser
CVE-2022-25858
- CVSS v3
- 5.3 Medium
- Public exploits
- None known
- EPSS
- 0.033 · 88.6th percentile
- Published
- 2022-07-15
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.033, 88.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Terser
- Terser — versions unspecified, 5.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (20142995/nuclei-templates, ARPSyndicate/cvemon, Naruse-developer/Miku_Theme, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JS-TERSER-2806366 (Exploit, Patch, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722 (Exploit, Patch, Third Party Advisory)
- github.com/terser/terser/blob/master/lib/compress/evaluate.js#L135 (Broken Link)
- github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b (Patch, Third Party Advisory)
- github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012 (Patch, Third Party Advisory)