Skip to content

Commit b413f77

Browse files
committed
vulnerability
1 parent 850d8af commit b413f77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/delegate/src/mergeFields.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ function handleResolverResult(
137137
const objectSubschema = resolverResult[OBJECT_SUBSCHEMA_SYMBOL];
138138
const fieldSubschemaMap = resolverResult[FIELD_SUBSCHEMA_MAP_SYMBOL];
139139
for (const responseKey in resolverResult) {
140+
if (responseKey === '__proto__') {
141+
continue;
142+
}
140143
const existingPropValue = object[responseKey];
141144
const sourcePropValue = resolverResult[responseKey];
142145
if (sourcePropValue != null || existingPropValue == null) {

0 commit comments

Comments
 (0)