Every CVE Search/ Get API key

CVE-2022-25858

Regular Expression Denial of Service (ReDoS)

5.3 MediumFix available

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

3.25%Up 2.3 points since Jul 16, 2022
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1
7.5 HighCVSS: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 HighCVSS: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 HighCVSS: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 MediumCVSS: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 HighCVSS: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 HighCVSS: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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1
7.5 HighCVSS: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

Affected packages
PackageAffectedFixed
terser
npm
before 4.8.1
4.8.1
terser
npm
5.0.0 up to 5.14.2
5.14.2
uglify-js
Azure Linux:3
before 3.19.3-11
3.19.3-11
js-jquery
Azure Linux:3
through 3.5.0-4 None known
terser
TuxCare:npm
3.17.0-tuxcare.0 up to 3.17.0-tuxcare.1, plus listed versions
3.17.0
3.17.0-tuxcare.1
terser
TuxCare:npm
5.5.1-tuxcare.0 up to 5.5.1-tuxcare.1, plus listed versions
5.5.1
5.5.1-tuxcare.1
terser
TuxCare:npm
5.3.0-tuxcare.0 up to 5.3.0-tuxcare.1, plus listed versions
5.3.0
5.3.0-tuxcare.1
terser
TuxCare:npm
4.6.10-tuxcare.0 up to 4.6.10-tuxcare.1, plus listed versions
4.6.10
4.6.10-tuxcare.1
terser
TuxCare: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
terser
TuxCare: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
Affected packages
PackageAffectedFixed
terser
TuxCare:npm
5.10.0-tuxcare.0 up to 5.10.0-tuxcare.1, plus listed versions
5.10.0
5.10.0-tuxcare.1
terser
TuxCare: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-terser
Debian:12
before 4.8.1-1
4.8.1-1
node-terser
Debian:13
before 4.8.1-1
4.8.1-1
node-terser
Debian:14
before 4.8.1-1
4.8.1-1
terser
Root:npm
before 4.8.0-aikido.1
4.8.0-aikido.1
@rootio/terser
Root:npm
before 4.8.0-root.io.1
4.8.0-root.io.1
node-terser
Ubuntu:20.04:LTS
All versions, plus listed versions
4.1.2-4ubuntu14.1.2-6
None known
node-terser
Ubuntu:22.04:LTS
All versions, plus listed versions
4.1.2-84.1.2-94.1.2-10
None known
qt6-webengine
Ubuntu: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-terser
Ubuntu:24.04:LTS
All versions, plus listed versions
5.19.2-1
None known
qt6-webengine
Ubuntu: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-terser
Ubuntu:25.10
All versions, plus listed versions
5.38.0-1
None known
qt6-webengine
Ubuntu:25.10
All versions, plus listed versions
6.8.3+dfsg-0ubuntu16.8.3+dfsg-0ubuntu26.9.2+dfsg-2
None known
node-terser
Ubuntu: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-webengine
Ubuntu: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-terser
Ubuntu:26.04:LTS
All versions, plus listed versions
5.38.0-15.46.1-4
None known
qt6-webengine
Ubuntu: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

History
RecordedChangedSources
factsOSV
aliases, publishedEUVD
first indexedCVE 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

Show 6 moreShow less
MoveEnter Open