Skip to main content
No exploitation reportedFix available

CVE-2022-25858

No exploitation reported by the sources we read.

  • Published2022-07-15
  • Fixed in5.14.2 · 4.8.1
  • WeaknessCWE-1333

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-07-1520:15CVE publishedNVD

Versions per branch

NVD · OSV
Terser
BranchAffectedFixed in
5.x≥ 5.0.0, < 5.14.25.14.2
4.8< 4.8.14.8.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/terserRoot:npmall versions · fixed in 4.8.0-root.io.1
  • js-jqueryAzure Linux:3all versions · no fixed version listed
  • node-terserUbuntu:26.10all versions · no fixed version listedand 1 other package
  • node-terserUbuntu:26.04:LTSall versions · no fixed version listedand 1 other package
  • node-terserUbuntu:25.10all versions · no fixed version listedand 1 other package
  • node-terserUbuntu:24.04:LTSall versions · no fixed version listedand 1 other package
  • node-terserUbuntu:22.04:LTSall versions · no fixed version listedand 1 other package
  • node-terserUbuntu:20.04:LTSall versions · no fixed version listed

14 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-25858 Red Hat Product Security4 products fixed · 53 known affected

    terser: insecure use of regular expressions leads to ReDoS

    rhmtc/openshift-migration-ui-rhel8 as a component of Migration Toolkit for Containers · migration-toolkit-virtualization/mtv-ui-rhel8 as a component of Migration Toolkit for Virtualization · openshift-service-mesh/kiali-rhel8 as a component of OpenShift Service Mesh 2.0 · +50 more

  • RHSA-2023:3645 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.2.7 security update

  • RHSA-2022:7313 Red Hat Product Security192 products fixed

    Red Hat Security Advisory: Red Hat Advanced Cluster Management 2.6.2 security update and bug fixes

  • RHSA-2022:7276 Red Hat Product Security221 products fixed

    Red Hat Security Advisory: Red Hat Advanced Cluster Management 2.4.8 security fixes and container updates

  • RHSA-2022:6835 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Service Registry (container images) release and security update [2.3.0.GA]

Full record on NVD

Fix

  1. Update Terser to 5.14.2 · 4.8.1
  2. Vendor fix Red Hat Product Security RHSA-2023:3645 · 3 productsFor details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2022:7313 · 192 productsFor Red Hat Advanced Cluster Management for Kubernetes, see the following documentation, which will be updated shortly for this release, for important instructions on installing this release: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html-…
  4. Vendor fix Red Hat Product Security RHSA-2022:7276 · 221 productsFor Red Hat Advanced Cluster Management for Kubernetes, see the following documentation, which will be updated shortly for this release, for important instructions on installing this update: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.4/html-s…
  5. Vendor fix Red Hat Product Security RHSA-2022:6835 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  6. No fix available, says the vendor Red Hat Product Security CVE-2022-25858 · 1 productFix deferred
  7. No fix available, says the vendor Red Hat Product Security CVE-2022-25858 · 12 productsAffected

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.15.3known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • NVDweakness (CWE)CWE-1333read 2026-10-23
  • FIRST EPSSEPSS score3.3 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2022-07-20

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-07-15
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-4wf5-vphf-c2xc

Frequently asked questions

What is CVE-2022-25858?

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.

Is CVE-2022-25858 actively exploited?

Active exploitation of CVE-2022-25858 has not been confirmed. Its EPSS score was 3.3% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-25858?

CVE-2022-25858 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running terser? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record