CVE-2024-21505
Description
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.
How to fix
- web3-utils4.2.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| web3-utilsnpm | 4.0.1 ≤ v < 4.2.1 | 4.2.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.