cve.bz

CVE-2022-25858 terser terser

7.5 highExploit referenceEPSS 3.3%Fix available

High (7.5) in terser terser. EPSS 3.3% estimated probability of exploitation activity in the next 30 days. Fixed in terser 4.8.1, 5.14.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.3% (unchanged from 3.3% a week ago; 3.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-25858 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-25858?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-25858?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-25858 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
terser:terserbefore 4.8.1
terser:terserfrom 5.0.0 before 5.14.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4wf5-vphf-c2xcnpmterser<4.8.14.8.1
GHSA-4wf5-vphf-c2xcnpmterser>=5.0.0 <5.14.25.14.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-terser4.8.1-1DEBIAN-CVE-2022-25858
Ubuntu20.04:LTSnode-terserno fix listedUBUNTU-CVE-2022-25858
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morenode-terser, qt6-webengineno fix listedUBUNTU-CVE-2022-25858
Azure Linux3js-jqueryno fix listedAZL-44553
Azure Linux3uglify-js3.19.3-11AZL-44460

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

For OpenShift Do (odo) product terser is shipped only for using in static page generators for upstream, thus this represents no security risk.

ProductPackageStateAdvisory
Red Hat OpenShift Service Mesh 2.2 for RHEL 8openshift-service-mesh/prometheus-rhel8:2.2.7-7Fixed 2023-06-15RHSA-2023:3645
RHINT Service Registry 2.3.0 GAterserFixed 2022-10-06RHSA-2022:6835
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Will not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-ui-rhel8Fix deferred
OpenShift Developer Tools and ServicesodoNot affected
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Will not fix
OpenShift Service Mesh 2.0openshift-service-mesh/kiali-rhel8Affected
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-prometheusAffected
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8Will not fix
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
OpenShift Service Mesh 2.1servicemesh-prometheusWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/application-ui-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-rhel8Will not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/kui-web-terminal-rhel8Out of support scope
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-ui-rhel8Affected
Red Hat Ansible Automation Platform 2aap-azure-uiNot affected
Red Hat Data Grid 8terserNot affected
22 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-25858.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON