CVE-2022-25858
MEDIUMterser < 4.8.1 and 5.0.0-5.14.2 - Regular Expression Denial of Service
Title source: llmDescription
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.
References (5)
Core 5
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-TERSER-2806366
Exploit, Patch, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722
Broken Link x_refsource_misc
https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135
Patch, Third Party Advisory x_refsource_misc
https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b
Patch, Third Party Advisory x_refsource_misc
https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012
Scores
CVSS v3
5.3
EPSS
0.0231
EPSS Percentile
81.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Details
CWE
CWE-1333
Status
published
Products (2)
npm/terser
0 - 4.8.1npm
terser/terser
< 4.8.1
Published
Jul 15, 2022
Tracked Since
Feb 18, 2026