Back
CVE-2022-25858
Regular Expression Denial of Service (ReDoS)
Medium5.3EPSS 3.3%
- Published
- Updated
- Reserved
- Assigned by
- snyk
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 3.3% · top 12% of all CVEs (7 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
- Regular Expression Denial of Service (ReDoS)
- CWE-1333 (opens in a new tab)All about CWE-1333 and its CVEs
Affected products
terser
- affected unspecified – < 4.8.1
- affected 5.0.0 – < unspecified
- affected unspecified – < 5.14.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References (5)
- https://snyk.io/vuln/SNYK-JS-TERSER-2806366 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4wf5-vphf-c2xc (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-25858)Record last updated .