VDB
Sign up
MEDIUM6.5

GHSA-xxjr-mmjv-4gpg

Lodash has Prototype Pollution Vulnerability in `_.unset`, `_.omit`, and `_.pullAt` functions

Quick fix

GHSA-xxjr-mmjv-4gpg — lodash: upgrade to the fixed version with the command below.

npm install lodash@4.17.23

Details

### Impact

The `_.unset`, `_.omit`, and `_.pullAt` functions are vulnerable to prototype pollution. An attacker can pass crafted paths which cause Lodash to delete methods from global prototypes.

The issue permits deletion of properties but does not allow overwriting their original behavior.

### Patches

The issue is patched from 4.17.23 to 4.18.0 depending on the package: `lodash`, `lodash-es`, and `lodash-amd` in 4.17.23, and the standalone `lodash.unset` and `lodash.omit` packages in 4.18.0.

### Workarounds

None. Upgrade to the patched version.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/lodash
Introduced in: 4.0.0Fixed in: 4.17.23
Fixnpm install lodash@4.17.23
npm/lodash-amd
Introduced in: 4.0.0Fixed in: 4.17.23
Fixnpm install lodash-amd@4.17.23
npm/lodash-es
Introduced in: 4.0.0Fixed in: 4.17.23
Fixnpm install lodash-es@4.17.23
npm/lodash.omit
Introduced in: 4.0.0Fixed in: 4.18.0
Fixnpm install lodash.omit@4.18.0
npm/lodash.unset
Introduced in: 4.0.0Fixed in: 4.18.0
Fixnpm install lodash.unset@4.18.0

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"]}'