VDB
Sign up
HIGH

GHSA-779f-wgxg-qr8f

Prototype Pollution in lodash.mergewith

Quick fix

GHSA-779f-wgxg-qr8f — lodash.mergewith: upgrade to the fixed version with the command below.

npm install lodash.mergewith@4.6.2

Details

Versions of `lodash.mergewith` before 4.6.2 are vulnerable to prototype pollution. The function `mergeWith` may allow a malicious user to modify the prototype of `Object` via `{constructor: {prototype: {...}}}` causing the addition or modification of an existing property that will exist on all objects.

## Recommendation

Update to version 4.6.2 or later.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/lodash.mergewith
Introduced in: 0Fixed in: 4.6.2
Fixnpm install lodash.mergewith@4.6.2

References