VDB
Sign up
HIGH7.4

GHSA-p6mc-m468-83gw

Prototype Pollution in lodash

Quick fix

GHSA-p6mc-m468-83gw — lodash: upgrade to the fixed version with the command below.

npm install lodash@4.17.19

Details

Versions of lodash prior to 4.17.19 are vulnerable to Prototype Pollution. The functions `pick`, `set`, `setWith`, `update`, `updateWith`, and `zipObjectDeep` allow a malicious user to modify the prototype of Object if the property identifiers are user-supplied. Being affected by this issue requires manipulating objects based on user-provided property values or arrays.

This vulnerability causes the addition or modification of an existing property that will exist on all objects and may lead to Denial of Service or Code Execution under specific circumstances.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/lodash
Introduced in: 3.7.0Fixed in: 4.17.19
Fixnpm install lodash@4.17.19
npm/lodash-es
Introduced in: 3.7.0Fixed in: 4.17.20
Fixnpm install lodash-es@4.17.20
npm/lodash.pick
Introduced in: 4.0.0

No fixed version published yet for lodash.pick (npm). Pin to a known-safe version or switch to an alternative.

npm/lodash.set
Introduced in: 3.7.0

No fixed version published yet for lodash.set (npm). Pin to a known-safe version or switch to an alternative.

npm/lodash.setwith
Introduced in: 0

No fixed version published yet for lodash.setwith (npm). Pin to a known-safe version or switch to an alternative.

npm/lodash.update
Introduced in: 0

No fixed version published yet for lodash.update (npm). Pin to a known-safe version or switch to an alternative.

npm/lodash.updatewith
Introduced in: 0

No fixed version published yet for lodash.updatewith (npm). Pin to a known-safe version or switch to an alternative.

RubyGems/lodash-rails
Introduced in: 3.7.0Fixed in: 4.17.19
Fixbundle update lodash-rails

References