CVEfocus › CVE database › CVE-2022-25858

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

CVSS 5.3 MediumEPSS 2.8% (higher than 87% of CVEs)Published 2022-07-15Updated 2024-09-16Assigner: snyk

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.

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
6Under investigation
23Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-terserFix pendingUBUNTU-CVE-2022-25858
Ubuntu 26.10qt6-webengineFix pendingUBUNTU-CVE-2022-25858
Ubuntu 26.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 26.04node-terserUnder investigationUBUNTU-CVE-2022-25858
Ubuntu 26.04qt6-webengineUnder investigationUBUNTU-CVE-2022-25858
Ubuntu 25.10chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 25.10node-terserWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2022-25858
Ubuntu 25.10qt6-webengineWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2022-25858
Ubuntu 24.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 24.04node-terserUnder investigationUBUNTU-CVE-2022-25858
Ubuntu 24.04qt6-webengineUnder investigationUBUNTU-CVE-2022-25858
Ubuntu 22.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 22.04node-terserUnder investigationUBUNTU-CVE-2022-25858
Ubuntu 22.04qt6-webengineUnder investigationUBUNTU-CVE-2022-25858
Ubuntu 20.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 20.04node-terserWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
UBUNTU-CVE-2022-25858
Ubuntu 18.04chromium-browserNot affected
vulnerable_code_not_present
Ubuntu 16.04chromium-browserWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
Ubuntu 14.04chromium-browserWill not fix
The Debian chromium source package is called chromium-browser in Ubuntu starting with Ubuntu 19.10, the chromium-browser package is just a script that…
Debian 14node-terserFixed4.8.1-1DEBIAN-CVE-2022-25858
Debian 13node-terserFixed4.8.1-1DEBIAN-CVE-2022-25858
Debian 12node-terserFixed4.8.1-1DEBIAN-CVE-2022-25858
Red Hat Enterprise Linux 9grafanaWill not fix
Will not fix
Red Hat Enterprise Linux 9grafana-selinuxWill not fix
Will not fix
Red Hat Enterprise Linux 8grafanaWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-azure-monitorWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-cloudwatchWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-elasticsearchWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-graphiteWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-influxdbWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-lokiWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-mssqlWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-mysqlWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-opentsdbWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-postgresWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-prometheusWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-selinuxWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-stackdriverWill not fix
Will not fix
Red Hat Enterprise Linux 8pcsWill not fix
Will not fix
Red Hat Enterprise Linux 8pcs-snmpWill not fix
Will not fix
npm libraryterserFixed5.14.2GHSA-4wf5-vphf-c2xc

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.