Advisory

GHSA-fvqr-27wr-82fm

Also known as: CVE-2018-3721

Summary

Prototype Pollution in lodash

Details

Versions of lodash before 4.17.5 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 __proto__ causing the addition or modification of an existing property that will exist on all objects.

Recommendation

Update to version 4.17.5 or later.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-07-26 15:14 UTC
Modified
2025-08-12 21:55 UTC

Affected packages and fixes

lodash

npm · All systems

Affected

  • introduced 0, fixed 4.17.5 (semver)

Fixed versions

4.17.5

Fix

lodash-rails

RubyGems · All systems

Affected

  • introduced 0, fixed 4.17.5 (ecosystem)

Fixed versions

4.17.5

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