Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lodash.defaultsdeep
  4. ›
  5. GMS-2020-351

GMS-2020-351: Prototype Pollution in lodash.defaultsdeep

September 3, 2020 (updated September 28, 2021)

Versions of lodash.defaultsdeep are vulnerable to prototype pollution. The function mergeWith may allow 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.

Update to or later.

References

  • github.com/advisories/GHSA-h5mp-5q4p-ggf5
  • www.npmjs.com/advisories/1068

Code Behaviors & Features

Detect and mitigate GMS-2020-351 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.6.1

Fixed versions

  • 4.6.1

Solution

Upgrade to version 4.6.1 or above.

Source file

npm/lodash.defaultsdeep/GMS-2020-351.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:14 +0000.