Vulnerability · Published Jul 15, 2022 · Assigned by snyk

CVE-2022-25858Regular Expression Denial of Service (ReDoS)

Medium 5.3

In plain English

A medium-severity security flaw in terser. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.3% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)3.3%top 11.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-terser4.8.1-1DEBIAN-CVE-2022-25858
Debian:13node-terser4.8.1-1DEBIAN-CVE-2022-25858
Debian:14node-terser4.8.1-1DEBIAN-CVE-2022-25858
Ubuntu:22.04:LTSnode-terserno fix listedUBUNTU-CVE-2022-25858
Ubuntu:24.04:LTSnode-terserno fix listedUBUNTU-CVE-2022-25858
Ubuntu:25.10node-terserno fix listedUBUNTU-CVE-2022-25858
Ubuntu:26.04:LTSnode-terserno fix listedUBUNTU-CVE-2022-25858
Ubuntu:26.10node-terserno fix listedUBUNTU-CVE-2022-25858
Ubuntu:22.04:LTSqt6-webengineno fix listedUBUNTU-CVE-2022-25858
Ubuntu:24.04:LTSqt6-webengineno fix listedUBUNTU-CVE-2022-25858
Ubuntu:25.10qt6-webengineno fix listedUBUNTU-CVE-2022-25858
Ubuntu:26.04:LTSqt6-webengineno fix listedUBUNTU-CVE-2022-25858
Ubuntu:26.10qt6-webengineno fix listedUBUNTU-CVE-2022-25858
npmterser5.14.2GHSA-4wf5-vphf-c2xc
npmterser4.8.1GHSA-4wf5-vphf-c2xc

Affected products (as reported)

VendorProductVersions
n/a terser unspecified – before 4.8.15.0.0 – before unspecifiedunspecified – before 5.14.2

References