federated-model-aggregation
federated-model-aggregation copied to clipboard
fetch-mock-9.11.0.tgz: 2 vulnerabilities (highest severity is: 7.5)
Vulnerable Library - fetch-mock-9.11.0.tgz
Path to dependency file: /clients/javascript_client/package.json
Path to vulnerable library: /clients/javascript_client/node_modules/@babel/runtime/package.json
Vulnerabilities
| CVE | Severity | Dependency | Type | Fixed in (fetch-mock version) | Remediation Possible** | |
|---|---|---|---|---|---|---|
| CVE-2024-45296 | 7.5 | path-to-regexp-2.4.0.tgz | Transitive | 10.1.0 | ✅ | |
| CVE-2025-27789 | 6.2 | detected in multiple dependencies | Transitive | N/A* | ❌ |
*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2024-45296
Vulnerable Library - path-to-regexp-2.4.0.tgz
Express style path to RegExp utility
Library home page: https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.4.0.tgz
Path to dependency file: /clients/javascript_client/package.json
Path to vulnerable library: /clients/javascript_client/node_modules/path-to-regexp/package.json
Dependency Hierarchy:
- fetch-mock-9.11.0.tgz (Root Library)
- :x: path-to-regexp-2.4.0.tgz (Vulnerable Library)
Found in base branch: main
Vulnerability Details
path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.
Publish Date: 2024-09-09
URL: CVE-2024-45296
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j
Release Date: 2024-09-09
Fix Resolution (path-to-regexp): 3.3.0
Direct dependency fix Resolution (fetch-mock): 10.1.0
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2025-27789
Vulnerable Libraries - helpers-7.24.7.tgz, runtime-7.24.7.tgz
helpers-7.24.7.tgz
Library home page: https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz
Path to dependency file: /clients/javascript_client/package.json
Path to vulnerable library: /clients/javascript_client/node_modules/@babel/helpers/package.json
Dependency Hierarchy:
- fetch-mock-9.11.0.tgz (Root Library)
- core-7.24.7.tgz
- :x: helpers-7.24.7.tgz (Vulnerable Library)
- core-7.24.7.tgz
runtime-7.24.7.tgz
Library home page: https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz
Path to dependency file: /clients/javascript_client/package.json
Path to vulnerable library: /clients/javascript_client/node_modules/@babel/runtime/package.json
Dependency Hierarchy:
- fetch-mock-9.11.0.tgz (Root Library)
- :x: runtime-7.24.7.tgz (Vulnerable Library)
Found in base branch: main
Vulnerability Details
Babel is a compiler for writing next generation JavaScript. When using versions of Babel prior to 7.26.10 and 8.0.0-alpha.17 to compile regular expression named capturing groups, Babel will generate a polyfill for the ".replace" method that has quadratic complexity on some specific replacement pattern strings (i.e. the second argument passed to ".replace"). Generated code is vulnerable if all the following conditions are true: Using Babel to compile regular expression named capturing groups, using the ".replace" method on a regular expression that contains named capturing groups, and the code using untrusted strings as the second argument of ".replace". This problem has been fixed in "@babel/helpers" and "@babel/runtime" 7.26.10 and 8.0.0-alpha.17. It's likely that individual users do not directly depend on "@babel/helpers", and instead depend on "@babel/core" (which itself depends on "@babel/helpers"). Upgrading to "@babel/core" 7.26.10 is not required, but it guarantees use of a new enough "@babel/helpers" version. Note that just updating Babel dependencies is not enough; one will also need to re-compile the code. No known workarounds are available.
Publish Date: 2025-03-11
URL: CVE-2025-27789
CVSS 3 Score Details (6.2)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Local
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: https://github.com/babel/babel/security/advisories/GHSA-968p-4wvh-cqc8
Release Date: 2025-03-11
Fix Resolution: @babel/helpers - 8.0.0-alpha.17
:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.