We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c752e0 commit acddf25Copy full SHA for acddf25
lib/mergeDeep.js
@@ -91,6 +91,10 @@ class MergeDeep {
91
// One of the oddities is when we compare objects, we are only interested in the properties of source
92
// So any property in the target that is not in the source is not treated as a deletion
93
for (const key in source) {
94
+ // Skip prototype pollution vectors
95
+ if (key === "__proto__" || key === "constructor") {
96
+ continue;
97
+ }
98
// Logic specific for Github
99
// API response includes urls for resources, or other ignorable fields; we can ignore them
100
if (key.indexOf('url') >= 0 || this.ignorableFields.indexOf(key) >= 0) {
0 commit comments