Changed
ResolveInfo::getFieldSelection(),getFieldSelectionWithAliases()andlookAhead()throw once they visit more thanResolveInfo::MAX_LOOK_AHEAD_FIELDS(100000) fields, fragments and merged keys, counting every entry of a reused fragment's result, argument names included, and each list as one entry GHSA-mv4h-fwrm-xmjgResolveInfo::getFieldSelection(),getFieldSelectionWithAliases()andQueryPlan::queryPlan()list fields in document order; fields of a fragment spread no longer come before the fields selected ahead of it GHSA-mv4h-fwrm-xmjgQueryPlan::getReferencedFields()andsubFields()list fields in the order the query first selects them: a field now comes before the fields nested in it, andgetReferencedFields()is no longer grouped by type GHSA-mv4h-fwrm-xmjgResolveInfo::getFieldSelectionWithAliases()andlookAhead()merge the arguments of a field reached through several fragments by argument name, instead of recursively into their values GHSA-mv4h-fwrm-xmjg
Fixed
- Denial of Service via exponential complexity in
ResolveInfo::getFieldSelection(),getFieldSelectionWithAliases()andlookAhead()through repeated fragment spreads GHSA-mv4h-fwrm-xmjg ResolveInfo::getFieldSelection()returnstruefor a leaf field selected more than once, instead of a list oftrueGHSA-mv4h-fwrm-xmjgResolveInfo::getFieldSelection()keeps a field's subtree when the same field name is also selected as a leaf on another type, instead of dropping it or throwing aTypeErrorGHSA-mv4h-fwrm-xmjg