PT-2024-18920 · Unknown · Web3-Utils
Tariq Hawis
·
Published
2024-03-24
·
Updated
2024-08-01
·
CVE-2024-21505
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
web3-utils versions prior to 4.2.1
Description
The issue concerns 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.Recommendations
For versions prior to 4.2.1, upgrade to web3-utils version 4.2.1 to resolve the issue. As a temporary workaround, consider restricting the use of the
mergeDeep() function until the upgrade is applied. Additionally, be cautious when using the format function with untrusted input to minimize the risk of exploitation.Fix
Prototype Pollution
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Web3-Utils