Versions of the package web3-utils before 4.2.1 are vulnerable to Prototype Pollution via the utility functions format and mergeDeep, due to insecure recursive merge.
An attacker can manipulate an object's prototype, potentially leading to the alteration of the behavior of all objects inheriting from the affected prototype by passing specially crafted input to these functions.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
Vulnerable Library - web3-4.4.0.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/web3-utils/package.json
Found in HEAD commit: 4911bfdf5032db55884fd7d8ff4183f59a268b55
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2024-21505
### Vulnerable Library - web3-utils-4.1.1.tgzLibrary home page: https://registry.npmjs.org/web3-utils/-/web3-utils-4.1.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/web3-utils/package.json
Dependency Hierarchy: - web3-4.4.0.tgz (Root Library) - :x: **web3-utils-4.1.1.tgz** (Vulnerable Library)
Found in HEAD commit: 4911bfdf5032db55884fd7d8ff4183f59a268b55
Found in base branch: master
### Vulnerability DetailsVersions of the package web3-utils before 4.2.1 are vulnerable to Prototype Pollution via the utility functions format and mergeDeep, due to insecure recursive merge. An attacker can manipulate an object's prototype, potentially leading to the alteration of the behavior of all objects inheriting from the affected prototype by passing specially crafted input to these functions.
Publish Date: 2024-03-25
URL: CVE-2024-21505
### 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
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://www.cve.org/CVERecord?id=CVE-2024-21505
Release Date: 2024-03-25
Fix Resolution (web3-utils): 4.2.1
Direct dependency fix Resolution (web3): 4.5.0
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.