ADVISORIES

GitHub Advisory Database

GHSA-jf85-cpcp-j695

Prototype Pollution in lodash

Details

Versions of lodash before 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep allows 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.17.12 or later.

Affected packages

EcosystemPackageAffected versions
npmlodash
All versions before 4.17.12 (fixed in 4.17.12)
npmlodash-es
All versions before 4.17.14 (fixed in 4.17.14)
npmlodash-amd
All versions before 4.17.13 (fixed in 4.17.13)
npmlodash.defaultsdeep
All versions before 4.6.1 (fixed in 4.6.1)
RubyGemslodash-rails
All versions before 4.17.12 (fixed in 4.17.12)

References