CVE-2022-25858
Regular Expression Denial of Service (ReDoS)
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.3
Regular Expression Denial of Service (ReDoS)
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.
- Record
CVE-2022-25858- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
EUVDEUVD-2022-6234
5.3
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.
- Record
EUVD-2022-6234- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4wf5-vphf-c2xc
7.5
Terser insecure use of regular expressions leads to ReDoS
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.
- Record
GHSA-4wf5-vphf-c2xc- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
NVD
5.3
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.
- Record
CVE-2022-25858- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSVAZL-44460
7.5
CVE-2022-25858 affecting package uglify-js for versions less than 3.19.3-11
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.
- Record
AZL-44460- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVAZL-44553
7.5
CVE-2022-25858 affecting package js-jquery 3.5.0-4
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.
- Record
AZL-44553- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
Show 13 moreShow less
OSV
5.3
Regular Expression Denial of Service (ReDoS)
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.
- Record
CVE-2022-25858- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-25858
7.5
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.
- Record
DEBIAN-CVE-2022-25858- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSVGHSA-4wf5-vphf-c2xc
7.5
Terser insecure use of regular expressions leads to ReDoS
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.
- Record
GHSA-4wf5-vphf-c2xc- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-25858
5.3
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.
- Record
UBUNTU-CVE-2022-25858- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1773793047 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 3.17.0-tuxcare.1.
- Record
CLSA-2026-1773793047- Updated
- 2026-11-02
OSVCLSA-2026-1775089645 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 5.5.1-tuxcare.1.
- Record
CLSA-2026-1775089645- Updated
- 2026-11-02
OSVCLSA-2026-1775089646 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 5.3.0-tuxcare.1.
- Record
CLSA-2026-1775089646- Updated
- 2026-11-02
OSVCLSA-2026-1775089649 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 4.6.10-tuxcare.1.
- Record
CLSA-2026-1775089649- Updated
- 2026-11-02
OSVCLSA-2026-1776645370 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 4.6.3-tuxcare.3.
- Record
CLSA-2026-1776645370- Updated
- 2026-11-02
OSVCLSA-2026-1779238051 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 5.7.1-tuxcare.1.
- Record
CLSA-2026-1779238051- Updated
- 2026-11-02
OSVCLSA-2026-1783731813 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 5.10.0-tuxcare.1.
- Record
CLSA-2026-1783731813- Updated
- 2026-11-02
OSVCLSA-2026-1790950461 No score
TuxCare security update for terser (1 CVE)
TuxCare rebuilt terser to address 1 CVE. Fixed in 4.8.0-tuxcare.1.
- Record
CLSA-2026-1790950461- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2022-25858 No score
CVE-2022-25858 in terser - Patched by Root
Root has patched CVE-2022-25858 in the terser package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2022-25858- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tersernpm |
before 4.8.1 | 4.8.1 |
tersernpm |
5.0.0 up to 5.14.2 | 5.14.2 |
uglify-jsAzure Linux:3 |
before 3.19.3-11 | 3.19.3-11 |
js-jqueryAzure Linux:3 |
through 3.5.0-4 | None known |
terserTuxCare:npm |
3.17.0-tuxcare.0 up to 3.17.0-tuxcare.1, plus listed versions 3.17.0 |
3.17.0-tuxcare.1 |
terserTuxCare:npm |
5.5.1-tuxcare.0 up to 5.5.1-tuxcare.1, plus listed versions 5.5.1 |
5.5.1-tuxcare.1 |
terserTuxCare:npm |
5.3.0-tuxcare.0 up to 5.3.0-tuxcare.1, plus listed versions 5.3.0 |
5.3.0-tuxcare.1 |
terserTuxCare:npm |
4.6.10-tuxcare.0 up to 4.6.10-tuxcare.1, plus listed versions 4.6.10 |
4.6.10-tuxcare.1 |
terserTuxCare:npm |
4.6.3-tuxcare.0 up to 4.6.3-tuxcare.3, plus listed versions 4.6.34.6.3-tuxcare.14.6.3-tuxcare.2 |
4.6.3-tuxcare.3 |
terserTuxCare:npm |
5.7.1-tuxcare.0 up to 5.7.1-tuxcare.1, plus listed versions 5.7.1 |
5.7.1-tuxcare.1 |
Show 18 moreShow less
| Package | Affected | Fixed |
|---|---|---|
terserTuxCare:npm |
5.10.0-tuxcare.0 up to 5.10.0-tuxcare.1, plus listed versions 5.10.0 |
5.10.0-tuxcare.1 |
terserTuxCare:npm |
4.8.0-tuxcare.0 up to 4.8.0-tuxcare.1, plus listed versions 4.8.0 |
4.8.0-tuxcare.1 |
node-terserDebian:12 |
before 4.8.1-1 | 4.8.1-1 |
node-terserDebian:13 |
before 4.8.1-1 | 4.8.1-1 |
node-terserDebian:14 |
before 4.8.1-1 | 4.8.1-1 |
terserRoot:npm |
before 4.8.0-aikido.1 | 4.8.0-aikido.1 |
@rootio/terserRoot:npm |
before 4.8.0-root.io.1 | 4.8.0-root.io.1 |
node-terserUbuntu:20.04:LTS |
All versions, plus listed versions 4.1.2-4ubuntu14.1.2-6 |
None known |
node-terserUbuntu:22.04:LTS |
All versions, plus listed versions 4.1.2-84.1.2-94.1.2-10 |
None known |
qt6-webengineUbuntu:22.04:LTS |
All versions, plus listed versions 6.2.2+dfsg-6ubuntu26.2.4+dfsg-1ubuntu16.2.4+dfsg-1ubuntu26.2.4+dfsg-6ubuntu1 |
None known |
node-terserUbuntu:24.04:LTS |
All versions, plus listed versions 5.19.2-1 |
None known |
qt6-webengineUbuntu:24.04:LTS |
All versions, plus listed versions 6.4.2-final+dfsg-116.4.2-final+dfsg-126.4.2-final+dfsg-12build16.4.2-final+dfsg-12ubuntu16.4.2-final+dfsg-12ubuntu76.4.2-final+dfsg-12ubuntu9 |
None known |
node-terserUbuntu:25.10 |
All versions, plus listed versions 5.38.0-1 |
None known |
qt6-webengineUbuntu:25.10 |
All versions, plus listed versions 6.8.3+dfsg-0ubuntu16.8.3+dfsg-0ubuntu26.9.2+dfsg-2 |
None known |
node-terserUbuntu:26.10 |
All versions, plus listed versions 5.46.1-45.47.1-15.49.0-15.49.2-15.50.0-1 |
None known |
qt6-webengineUbuntu:26.10 |
All versions, plus listed versions 6.10.2+dfsg-16.10.2+dfsg-46.10.2+dfsg-56.11.2+dfsg-3ubuntu16.11.2+dfsg-3ubuntu2 |
None known |
node-terserUbuntu:26.04:LTS |
All versions, plus listed versions 5.38.0-15.46.1-4 |
None known |
qt6-webengineUbuntu:26.04:LTS |
All versions, plus listed versions 6.9.2+dfsg-26.9.2+dfsg-46.9.2+dfsg-4build16.9.2+dfsg-4build26.10.2+dfsg-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-25858 is a medium vulnerability (CVSS 5.3) in Terser, published July 15, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.25%, the 88th percentile. Fixed in terser 4.8.1.
References
snyk.io/vuln/SNYK-JS-TERSER-2806366
snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722
github.com/terser/terser/blob/master/lib/compress/evaluate.js%23L135
github.com/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b
github.com/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012
nvd.nist.gov/vuln/detail/CVE-2022-25858