Skip to content

Prototype Pollution in lodash

Moderate severity GitHub Reviewed Published Jul 26, 2018 to the GitHub Advisory Database • Updated Apr 22, 2024

Package

npm lodash (npm)

Affected versions

< 4.17.5

Patched versions

4.17.5

Description

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.

References

Published by the National Vulnerability Database Jun 7, 2018
Published to the GitHub Advisory Database Jul 26, 2018
Reviewed Jun 16, 2020
Last updated Apr 22, 2024

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

CVE ID

CVE-2018-3721

GHSA ID

GHSA-fvqr-27wr-82fm

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.