Skip to content

CVE-2024-21505 web3-utils Prototype Pollution vulnerability

HighCVSS 7.5 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm web3-utils(npm) >= 4.0.1, < 4.2.1 4.2.1 Fixed
web3-utils < 4.2.1 4.2.1 Fixed

Affected products

ProductAffected versionsFixed in
npm web3-utils(npm) >= 4.0.1, < 4.2.1 4.2.1
web3-utils < 4.2.1 4.2.1

References