CVE-2022-25858
published medium CVSS 3.1 · 5.3Regular Expression Denial of Service (ReDoS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | terserunspecified to < 4.8.1 · 5.0.0 to < unspecified · unspecified to < 5.14.2 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | terser | unspecified to < 4.8.1 (affected · custom)5.0.0 to < unspecified (affected · custom)unspecified to < 5.14.2 (affected · custom) | snyk · cna |
Weaknesses
1- Regular Expression Denial of Service (ReDoS)
References
5- https://github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135
- https://github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b
- https://github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722
- https://snyk.io/vuln/SNYK-JS-TERSER-2806366
Provider assertions
2snyk · cna
Regular Expression Denial of Service (ReDoS)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 89270d8aa6f64ec93145091c4b3ceb80622430e41cf17c0f062a3be2b5686dbf
- Ingested
- 23 Sep 2026, 07:59:05 UTC
- Source record
- Official CVE record