Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-40476 EUVD-2026-23569GHSA-68jq-c3rv-pcrr

graphql-php: Denial of Service via quadratic complexity in OverlappingFieldsCanBeMerged validation

Published Apr 17, 2026 · Updated Sep 14, 2026 · Assigned by GitHub_M

Description

graphql-go is a Go implementation of GraphQL. In versions 15.31.4 and below, the OverlappingFieldsCanBeMerged validation rule performs O(n²) pairwise comparisons of fields sharing the same response name. An attacker can send a query with thousands of repeated identical fields, causing excessive CPU usage during validation before execution begins. This is not mitigated by existing QueryDepth or QueryComplexity rules. This issue has been fixed in version 15.31.5.

Affected products

VendorProductAffectedFixed
webonyx graphql-php < 15.31.5 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist webonyx/graphql-php < 15.31.5 15.31.5 GHSA-68jq-c3rv-pcrr

References