VDB
Sign up
HIGH

GHSA-46fh-8fc5-xcwx

Prototype Pollution in lodash.defaultsdeep

Quick fix

GHSA-46fh-8fc5-xcwx — lodash.defaultsdeep: upgrade to the fixed version with the command below.

npm install lodash.defaultsdeep@4.6.1

Details

Versions of `lodash.defaultsdeep` before 4.6.1 are vulnerable to Prototype Pollution. The function 'defaultsDeep' may allow a malicious user to modify the prototype of `Object` via `__proto__` causing the addition or modification of an existing property that will exist on all objects.

## Recommendation

Update to version 4.6.1 or later.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/lodash.defaultsdeep
Introduced in: 0Fixed in: 4.6.1
Fixnpm install lodash.defaultsdeep@4.6.1

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/lodash.defaultsdeep"]}'