GHSA-4xc9-xhrj-v574

Suggest an improvement
Source
https://github.com/advisories/GHSA-4xc9-xhrj-v574
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/02/GHSA-4xc9-xhrj-v574/GHSA-4xc9-xhrj-v574.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4xc9-xhrj-v574
Aliases
Published
2019-02-07T18:16:48Z
Modified
2025-08-12T21:55:35.778975Z
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.

Database specific
{
    "nvd_published_at": null,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-400"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T20:59:41Z"
}
References

Affected packages

npm / lodash

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.17.11

RubyGems / lodash-rails

Package

Name
lodash-rails
Purl
pkg:gem/lodash-rails

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.17.11

Affected versions

0.*

0.7.0
0.8.1
0.8.2
0.9.0
0.9.1
0.9.2
0.10.0

1.*

1.0.0.rc.1
1.0.0.rc.2
1.0.0.rc.3
1.0.1
1.1.0
1.1.1
1.2.0
1.2.1
1.3.1

2.*

2.0.0
2.1.0
2.2.0
2.2.1
2.3.0
2.4.0
2.4.1

3.*

3.1.0
3.2.0
3.3.0
3.3.1
3.3.1.1
3.4.0
3.5.0
3.6.0
3.7.0
3.9.3
3.10.0
3.10.1

4.*

4.0.0
4.3.0
4.5.1
4.6.1
4.11.2
4.12.0
4.13.1
4.14.1
4.15.0
4.16.1
4.16.3
4.16.4
4.16.6
4.17.2
4.17.4
4.17.5
4.17.10