Regular expression denial of service (ReDoS) in terser
Priority LOW 39CWE-1333Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 fixed, 18 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
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.
Why it matters now
EPSS 0.03253 88th percentileScored 2026-11-07
Fix Partial terser: 4.8.1, 5.14.2terser (npm): 4.8.1, 5.14.2Red Hat: 4 advisoriesRed Hat: 2 fixed, 18 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | terser | before 4.8.1; 5.0.0 and later; before 5.14.2 | 4.8.1, 5.14.2 | Patch available | CNA |
| — | terser (npm) | before 4.8.1 | 4.8.1 | Patch available | GHSA-4wf5-vphf-c2xc |
| — | terser (npm) | 5.0.0 to before 5.14.2 | 5.14.2 | Patch available | GHSA-4wf5-vphf-c2xc |
- terser Vendor— Affected before 4.8.1; 5.0.0 and later; before 5.14.2 Fixed in 4.8.1, 5.14.2 Patch available CNA
- terser (npm) Vendor— Affected before 4.8.1 Fixed in 4.8.1 Patch available GHSA-4wf5-vphf-c2xc
- terser (npm) Vendor— Affected 5.0.0 to before 5.14.2 Fixed in 5.14.2 Patch available GHSA-4wf5-vphf-c2xc
Remediation
- Fix · CNA terser Fixed in 4.8.1, 5.14.2
- Fix · GHSA-4wf5-vphf-c2xc terser (npm) Fixed in 4.8.1 Advisory →
- Fix · GHSA-4wf5-vphf-c2xc terser (npm) Fixed in 5.14.2 Advisory →
Red Hat 4 advisories
- RHSA-2023:3645 Released 2023-06-15 · Red Hat rating ModerateRed Hat OpenShift Service Mesh 2.2.7 security update
- RHOSSM 2.2 for RHEL 8 openshift-service-mesh/prometheus-rhel8
- RHSA-2022:7313 Released 2022-11-02 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.6.2 security update and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.6 for RHEL 8 rhacm2/acm-governance-policy-addon-controller-rhel8, rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8 +45
- RHSA-2022:7276 Released 2022-11-01 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.4.8 security fixes and container updates
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
Show 1 more Red Hat advisories
- RHSA-2022:6835 Released 2022-10-06 · Red Hat rating ImportantService Registry (container images) release and security update [2.3.0.GA]
- RHINT Service Registry 2.3.0 GA
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Containers | Affected | No fix planned: Will not fix |
| Migration Toolkit for Virtualization | Affected | No fix yet: Fix deferred |
| OpenShift Service Mesh 2 | Affected | No fix planned: Will not fix |
| OpenShift Service Mesh 2.0 | Affected | No fix yet |
| OpenShift Service Mesh 2.1 | Affected | No fix planned: Will not fix |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Will not fix |
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Integration Service Registry | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Dev Spaces | Affected | No fix planned: Will not fix |
| Red Hat OpenShift distributed tracing 2 | Affected | No fix yet |
| Red Hat Openshift Data Foundation 4 | Affected | No fix planned: Will not fix |
| Red Hat Quay 3 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Virtualization 4 | Affected | No fix planned: Will not fix |
| RHINT Service Registry 2.3.0 GA | Fixed | RHSA-2022:6835 |
| RHOSSM 2.2 for RHEL 8 | Fixed | RHSA-2023:3645 |
Not affected: 13 products
- Logging Subsystem for Red Hat OpenShift
- OpenShift Developer Tools and Services
- RHOSSM 2.2 for RHEL 8
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Ansible Automation Platform 2
- Red Hat Data Grid 8
- Red Hat Decision Manager 7
- Red Hat Integration Camel K 1
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift GitOps
- Red Hat OpenShift distributed tracing 2
- Red Hat Process Automation 7
Timeline
- 2026-10-02 Threatist record created from CVE-2022-25858
- 2026-10-03 Alias added: GHSA-4wf5-vphf-c2xc
References
Patch 2
Sources
- CVE-2022-25858 · CVE Program
- CVE-2022-25858 · NVD
- FIRST EPSS
- GHSA-4wf5-vphf-c2xc · GitHub Advisory Database · CC BY 4.0
- CVE-2022-25858 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences