What’s Vulnerable › Vulnerabilities

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.

Affected products

How to fix

Upgrade to a fixed version: Web3-Utils 4.2.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-21505 or the next vulnerability affects your stack