GHSA-46fh-8fc5-xcwx Prototype Pollution in lodash.defaultsdeep

Not scored Published

Attackers can pollute Object prototypes via __proto__ in lodash.defaultsdeep, potentially leading to code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-46fh-8fc5-xcwx?

GHSA-46fh-8fc5-xcwx is a vulnerability in lodash.defaultsdeep, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of lodash.defaultsdeep before 4.6.1 are vulnerable to Prototype Pollution. The function 'defaultsDeep' may 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.6.1 or later.

Which versions are affected by GHSA-46fh-8fc5-xcwx?

2 open source packages ship an affected version, including lodash.defaultsdeep.

PackageAffectedFixed in
lodash.defaultsdeep npmAll versions4.6.1
lodash.defaultsdeep npmAll versions4.6.1

How do I fix GHSA-46fh-8fc5-xcwx?

Upgrade lodash.defaultsdeep to 4.6.1 or later.

Is GHSA-46fh-8fc5-xcwx being exploited?

There is no known exploitation of GHSA-46fh-8fc5-xcwx in the wild and no public exploit code.

Sources

Is GHSA-46fh-8fc5-xcwx in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free