CVE-2024-21505
Versions of the package web3-utils before 4.2.1 are vulnerable to …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/web3/web3.js/commit/8ed041c6635d807b3da8960ad49e125e3d1b0e80
- security.snyk.io/vuln/SNYK-JS-WEB3UTILS-6229337
- github.com/web3/web3.js/security/advisories/GHSA-2g4c-8fpm-c46v
- nvd.nist.gov/vuln/detail/CVE-2024-21505
- github.com/advisories/GHSA-2g4c-8fpm-c46v
- nvd.nist.gov/vuln/detail/CVE-2024-21505
- cve.org/CVERecord?id=CVE-2024-21505
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.