Skip to content

Commit d3b230b

Browse files
author
huntr.dev | the place to protect open source
authored
Merge pull request #1 from zpbrent/patch-1
Security Fix for Prototype Pollution in mquery
2 parents 34344fa + a7b6d7c commit d3b230b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ exports.mergeClone = function mergeClone(to, from) {
170170

171171
while (i--) {
172172
key = keys[i];
173+
if (specialProperties.indexOf(key) !== -1) {
174+
continue;
175+
}
173176
if ('undefined' === typeof to[key]) {
174177
to[key] = clone(from[key]);
175178
} else {

0 commit comments

Comments
 (0)