CVE-2024-21505
HIGH 7.5CVSS 3.1web3-utils Prototype Pollution vulnerability
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.
- Published
- 25 Mar 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-1321
- Also known as
- GHSA-2g4c-8fpm-c46v
- Sources
- NVDJSONOSV GHSA-2g4c-8fpm-c46vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | 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 |
| 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.0.1, < 4.2.1 | 4.2.1 |
References
- https://github.com/web3/web3.js/commit/8ed041c6635d807b3da8960ad49e125e3d1b0e80 · WEB
- https://security.snyk.io/vuln/SNYK-JS-WEB3UTILS-6229337 · WEB
- https://github.com/web3/web3.js/security/advisories/GHSA-2g4c-8fpm-c46v · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21505 · ADVISORY
- https://github.com/web3/web3.js · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 25 Mar 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 27 Mar 2024)