Prototype Pollution Vulnerability in Lodash _.unset and _.omit functions
lodash · lodash-amd · lodash-es · lodash.unset
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| lodash npm |
|
|
| lodash-amd npm |
|
|
| lodash-es npm |
lodash · lodash-amd · lodash-es · lodash.unset
| Product | Affected | Fixed in |
|---|---|---|
| lodash npm |
|
|
| lodash-amd npm |
|
|
| lodash-es npm |
≥ 4.0.0 · < 4.17.23
|
| lodash.omit npm |
|
|
| lodash.unset npm |
|
|
The _.unset and _.omit functions in Lodash are vulnerable to prototype pollution. An attacker can pass crafted paths which cause Lodash to delete methods from global prototypes. The issue permits deletion of properties but does not allow overwriting their original behavior. The issue is patched from 4.17.23 to 4.18.0 depending on the package: lodash, lodash-es, and lodash-amd in 4.17.23, and the standalone lodash.unset and lodash.omit packages in 4.18.0.
From the CVE record · openjs
The _.unset and _.omit functions are vulnerable when an attacker can pass crafted paths to them. Those paths can delete methods from global prototypes, but cannot overwrite their original behavior. The input does not specify network access, authentication requirements, or user interaction.
Check npm installations of lodash, lodash-amd, or lodash-es from 4.0.0 up to but not including 4.17.23, and lodash.omit or lodash.unset from 4.0.0 up to but not including 4.18.0.