fix: prototype pollution issue (#6096) · typeorm/typeorm@db9d0fa

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit db9d0fa

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

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)