ADVISORIES

GitHub Advisory Database

GHSA-p6mc-m468-83gw

Prototype Pollution in lodash

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.

Affected packages

EcosystemPackageAffected versions
npmlodash
From 3.7.0 before 4.17.19 (fixed in 4.17.19)
npmlodash-es
From 3.7.0 before 4.17.20 (fixed in 4.17.20)
npmlodash.pick
From 4.0.0 up to and including 4.4.0
npmlodash.set
From 3.7.0 up to and including 4.3.2
npmlodash.setwith
All versions up to and including 4.3.2
npmlodash.update
All versions up to and including 4.10.2
npmlodash.updatewith
All versions up to and including 4.10.2
RubyGemslodash-rails
From 3.7.0 before 4.17.19 (fixed in 4.17.19)

References