github webonyx/graphql-php v15.44.4

latest release: v15.45.0
one hour ago

Changed

  • ResolveInfo::getFieldSelection(), getFieldSelectionWithAliases() and lookAhead() throw once they visit more than ResolveInfo::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-xmjg
  • ResolveInfo::getFieldSelection(), getFieldSelectionWithAliases() and QueryPlan::queryPlan() list fields in document order; fields of a fragment spread no longer come before the fields selected ahead of it GHSA-mv4h-fwrm-xmjg
  • QueryPlan::getReferencedFields() and subFields() list fields in the order the query first selects them: a field now comes before the fields nested in it, and getReferencedFields() is no longer grouped by type GHSA-mv4h-fwrm-xmjg
  • ResolveInfo::getFieldSelectionWithAliases() and lookAhead() 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() and lookAhead() through repeated fragment spreads GHSA-mv4h-fwrm-xmjg
  • ResolveInfo::getFieldSelection() returns true for a leaf field selected more than once, instead of a list of true GHSA-mv4h-fwrm-xmjg
  • ResolveInfo::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 a TypeError GHSA-mv4h-fwrm-xmjg

Don't miss a new graphql-php release

NewReleases is sending notifications on new releases.