{"id":"CVE-2024-21505","published":"2024-03-25T05:00:00Z","modified":"2024-08-23T19:10:40Z","title":"Versions of the package web3-utils before 4.2.1 are vulnerable to Prototype Pollution via the utility functions format…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.\rAn 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01091,"percentile":0.65013,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-WEB3UTILS-6229337","tags":[]},{"url":"https://github.com/web3/web3.js/commit/8ed041c6635d807b3da8960ad49e125e3d1b0e80","tags":[]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":13.0},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"web3-utils","versions":["< 4.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-08-23T19:10:35.532555Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"web3-utils","vulnerableRanges":[">=4.0.1, <4.2.1"],"patched":["4.2.1"],"from":["GHSA-2g4c-8fpm-c46v"],"provenance":"source"}],"summary":{"text":"The web3-utils npm package, in versions before 4.2.1, contains a prototype pollution flaw in its format and mergeDeep utility functions, caused by insecure recursive merging. An attacker who can supply specially crafted input to these functions can alter the prototype of an object, changing the behaviour of every object that inherits from it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:21:02Z"},"euvd":{"id":"EUVD-2024-0786","exploited":false,"provenance":"source"}}