Skip to content

Commit

Permalink
fix: prototype pollution issue (typeorm#6096)
Browse files Browse the repository at this point in the history
  • Loading branch information
pleerock authored and Svetlozar committed Jan 12, 2021
1 parent f8aecbe commit b3e2e99
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 b3e2e99

Please sign in to comment.