CVE-2022-25858 json
Regular Expression Denial of Service (ReDoS)
published 2022-07-15 4 y ago modified 2026-06-17 4 mo ago also GHSA-4wf5-vphf-c2xc , EUVD-2022-6234
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.3%
- EPSS 3.3% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm terser 4.8.1, 5.14.2
- n/a terser 4.8.1, 5.14.2
- node-terser Debian 14, Debian 13, Debian 12 4.8.1-1
debian advisories DEBIAN-CVE-2022-25858
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25858 updated cvss 7.5
terser: insecure use of regular expressions leads to ReDoS
-
Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-ui-rhel8affected: no fix planned “Will not fix”
-
Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-ui-rhel8affected: no fix available “Fix deferred”
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8affected: no fix planned “Will not fix”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheus, openshift-service-mesh/kiali-rhel8affected: no fix available
-
Red Hat OpenShift Service Mesh 2.1 servicemesh-grafana, servicemesh-prometheus, openshift-service-mesh/kiali-rhel8affected: no fix planned “Will not fix”
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/grc-ui-rhel8, rhacm2/console-rhel8, rhacm2/search-ui-rhel8, rhacm2/kui-web-terminal-rhel8affected: no fix available, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 pcs, grafana, pcs-snmp, grafana-loki, grafana-mssql, grafana-mysql, +10 more Red Hat Enterprise Linux 9 grafana, grafana-selinux Red Hat Fuse 7 terseraffected: no fix planned “Will not fix”
-
Red Hat Integration Service Registry terser Red Hat JBoss Enterprise Application Platform 6 terseraffected: no fix planned “Out of support scope”
show 8 moreshow fewer
-
Red Hat OpenShift Container Platform 4 openshift4/ose-console Red Hat Openshift Data Foundation 4 odf4/odf-console-rhel9, odf4/odf-multicluster-console-rhel8 Red Hat OpenShift Dev Spaces devspaces-theia-rhel8-containeraffected: no fix planned “Will not fix”
-
Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-all-in-one-rhel8affected: no fix available
-
Red Hat Quay 3 quay/quay-rhel8affected: no fix planned “Will not fix”
-
Red Hat Satellite 6 rubygem-rabl, tfm-rubygem-rablaffected: no fix available
-
Red Hat Virtualization 4 cockpit-ovirt-uiplugin, cockpit-ovirt-dashboardaffected: no fix planned “Will not fix”
-
Red Hat RHINT Service Registry 2.3.0 GAfixed: vendor fix RHSA-2022:6835
-
Red Hat RHOSSM 2.2 for RHEL 8 openshift-service-mesh/prometheus-rhel8 2.2.7-7fixed: vendor fix RHSA-2023:3645
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/kibana6-rhel8 Red Hat OpenShift Developer Tools and Services odo Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/application-ui-rhel8 Red Hat Ansible Automation Platform 2 aap-azure-ui Red Hat Data Grid 8 terser Red Hat Decision Manager 7 tersernot affected: vulnerable code not present
+7 more productsfewer
Red Hat Integration Camel K 1 terser Red Hat JBoss Enterprise Application Platform 7 terser Red Hat JBoss Enterprise Application Platform Expansion Pack terser Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-query-rhel8 Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8 Red Hat Process Automation 7 terser Red Hat RHOSSM 2.2 for RHEL 8 openshift-service-mesh/pilot-rhel8 2.2.7-7, openshift-service-mesh/kiali-rhel8 1.48.6-1, openshift-service-mesh/grafana-rhel8 2.2.7-3, openshift-service-mesh/proxyv2-rhel8 2.2.7-6, openshift-service-mesh/istio-cni-rhel8 2.2.7-7, openshift-service-mesh/ratelimit-rhel8 2.2.7-4, +1 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.25% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | terser | <4.8.1 >=5.0.0, <5.14.2 |
4.8.1 5.14.2 |
Affected products
- n/a terser
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/terser/terser/commit/a4da7349fdc92c05094f41d33d06d8cd4e90e76b
web, patch, third-party-advisory
-
github.com
/terser/terser/commit/d8cc5691be980d663c29cc4d5ce67e852d597012
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-TERSER-2806366
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-2949722
web, exploit, patch, third-party-advisory
-
github.com
/terser/terser/blob/master/lib/compress/evaluate.js%23L135
web, broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2022-25858
advisory
-
github.com
/terser/terser
package
Sources
- CVE List CVE-2022-25858
- GitHub Advisory GHSA-4wf5-vphf-c2xc
- NVD CVE-2022-25858
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.