Skip to content

Commit

Permalink
fix: prototype pollution issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pleerock committed Aug 29, 2022
1 parent ed1f0b9 commit e3aac27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/OrmUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export class OrmUtils {
): any {
if (this.isPlainObject(target) && this.isPlainObject(source)) {
for (const key of Object.keys(source)) {
if (key === "__proto__") continue
this.mergeObjectKey(target, key, source[key], memo)
}
}
Expand Down

0 comments on commit e3aac27

Please sign in to comment.