Skip to content
OpenAdvisories
High · 7.5 CVE-2024-21505 EUVD-2024-0786GHSA-2g4c-8fpm-c46v

web3-utils Prototype Pollution vulnerability

Published Mar 25, 2024 · Updated Aug 23, 2024 · Assigned by snyk

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

VendorProductAffectedFixed
— web3-utils < 4.2.1 4.2.1

Affected packages

EcosystemPackageAffectedFixedRecord
npm web3-utils >= 4.0.1, < 4.2.1 4.2.1 GHSA-2g4c-8fpm-c46v

References