X Tutup
Skip to content

Commit db9d0fa

Browse files
authored
fix: prototype pollution issue (#6096)
1 parent 9c4207e commit db9d0fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/OrmUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class OrmUtils {
7575
if (this.isObject(target) && this.isObject(source)) {
7676
for (const key in source) {
7777
const value = source[key];
78-
if (value instanceof Promise)
78+
if (key === "__proto__" || value instanceof Promise)
7979
continue;
8080

8181
if (this.isObject(value)

0 commit comments

Comments
 (0)
X Tutup