Skip to content

Commit

Permalink
fix(security): prototype polution exploit (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSMike authored Oct 20, 2022
1 parent 90c7c4b commit a93cf6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function parseQuery(query) {
}

const queryArgs = query.split(/[,&]/g);
const result = {};
const result = Object.create(null);

queryArgs.forEach((arg) => {
const idx = arg.indexOf('=');
Expand Down

0 comments on commit a93cf6f

Please # to comment.