GHSA-87qp-7cw8-8q9c
HIGH 7.5CVSS 3.1withdrawn / rejectedDuplicate Advisory: web3-utils Prototype Pollution vulnerability
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-2g4c-8fpm-c46v. This link is maintained to preserve external references.
Original 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.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | web3-utils | < 4.2.1 | 4.2.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21505 · ADVISORY
- https://github.com/web3/web3.js/commit/8ed041c6635d807b3da8960ad49e125e3d1b0e80 · WEB
- https://github.com/web3/web3.js · PACKAGE
- https://security.snyk.io/vuln/SNYK-JS-WEB3UTILS-6229337 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 25 Mar 2024)