Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: prototype pollution issue (#6096)
  • Loading branch information
pleerock committed May 19, 2020
1 parent 9c4207e commit db9d0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/OrmUtils.ts
Expand Up @@ -75,7 +75,7 @@ export class OrmUtils {
if (this.isObject(target) && this.isObject(source)) {
for (const key in source) {
const value = source[key];
if (value instanceof Promise)
if (key === "__proto__" || value instanceof Promise)
continue;

if (this.isObject(value)
Expand Down

0 comments on commit db9d0fa

Please sign in to comment.