mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
fix(zipObjectDeep): prototype pollution (#4759)
This commit is contained in:
@@ -3990,6 +3990,10 @@
|
||||
var key = toKey(path[index]),
|
||||
newValue = value;
|
||||
|
||||
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
||||
return object;
|
||||
}
|
||||
|
||||
if (index != lastIndex) {
|
||||
var objValue = nested[key];
|
||||
newValue = customizer ? customizer(objValue, key, nested) : undefined;
|
||||
|
||||
Reference in New Issue
Block a user