CVE-2022-25858Regular 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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-terser | Fix pending | UBUNTU-CVE-2022-25858 | |
| Ubuntu 26.10 | qt6-webengine | Fix pending | UBUNTU-CVE-2022-25858 | |
| Ubuntu 26.04 | chromium-browser | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | node-terser | Under investigation | UBUNTU-CVE-2022-25858 | |
| Ubuntu 26.04 | qt6-webengine | Under investigation | UBUNTU-CVE-2022-25858 | |
| Ubuntu 25.10 | chromium-browser | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | node-terser | Will 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.10 | qt6-webengine | Will 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.04 | chromium-browser | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | node-terser | Under investigation | UBUNTU-CVE-2022-25858 | |
| Ubuntu 24.04 | qt6-webengine | Under investigation | UBUNTU-CVE-2022-25858 | |
| Ubuntu 22.04 | chromium-browser | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | node-terser | Under investigation | UBUNTU-CVE-2022-25858 | |
| Ubuntu 22.04 | qt6-webengine | Under investigation | UBUNTU-CVE-2022-25858 | |
| Ubuntu 20.04 | chromium-browser | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | node-terser | Will 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.04 | chromium-browser | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | chromium-browser | Will 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.04 | chromium-browser | Will 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 14 | node-terser | Fixed | 4.8.1-1 | DEBIAN-CVE-2022-25858 |
| Debian 13 | node-terser | Fixed | 4.8.1-1 | DEBIAN-CVE-2022-25858 |
| Debian 12 | node-terser | Fixed | 4.8.1-1 | DEBIAN-CVE-2022-25858 |
| Red Hat Enterprise Linux 9 | grafana | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | pcs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Will not fix Will not fix | ||
| npm library | terser | Fixed | 5.14.2 | GHSA-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.
- terser: affected: unspecified to before 4.8.1, 5.0.0 to before unspecified, unspecified to before 5.14.2; fixed in
4.8.1,5.14.2
References
- https://snyk.io/vuln/SNYK-JS-TERSER-2806366
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722
- 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
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.