Advisory

GHSA-4xc9-xhrj-v574

Also known as: CVE-2018-16487

Summary

Prototype Pollution in lodash

Details

Versions of lodash before 4.17.11 are vulnerable to prototype pollution.

The vulnerable functions are 'defaultsDeep', 'merge', and 'mergeWith' which 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.

Recommendation

Update to version 4.17.11 or later.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2019-02-07 18:16 UTC
Modified
2025-08-12 21:55 UTC

Affected packages and fixes

lodash

npm · All systems

Affected

  • introduced 0, fixed 4.17.11 (semver)

Fixed versions

4.17.11

Fix

lodash-rails

RubyGems · All systems

Affected

  • introduced 0, fixed 4.17.11 (ecosystem)

Fixed versions

4.17.11

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences