Skip to content

Commit

Permalink
Merge pull request #121 from 418sec/1-npm-mquery
Browse files Browse the repository at this point in the history
Security Fix for Prototype Pollution - huntr.dev
  • Loading branch information
vkarpov15 authored Mar 29, 2021
2 parents 34344fa + d3b230b commit 158f059
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ exports.mergeClone = function mergeClone(to, from) {

while (i--) {
key = keys[i];
if (specialProperties.indexOf(key) !== -1) {
continue;
}
if ('undefined' === typeof to[key]) {
to[key] = clone(from[key]);
} else {
Expand Down

0 comments on commit 158f059

Please sign in to comment.