graphql-php: Denial of Service via quadratic complexity in OverlappingFieldsCanBeMerged validation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-407.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| webonyx | graphql-php | before 15.31.5 | 15.31.5 | Patch available | CNA |
| — | webonyx/graphql-php (Packagist) | before 15.31.5 | 15.31.5 | Patch available | GHSA-68jq-c3rv-pcrr |
- graphql-php Vendorwebonyx Affected before 15.31.5 Fixed in 15.31.5 Patch available CNA
- webonyx/graphql-php (Packagist) Vendor— Affected before 15.31.5 Fixed in 15.31.5 Patch available GHSA-68jq-c3rv-pcrr
Remediation
- Fix · CNA graphql-php (webonyx) Fixed in 15.31.5
- Fix · GHSA-68jq-c3rv-pcrr webonyx/graphql-php (Packagist) Fixed in 15.31.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40476
- 2026-10-03 Alias added: GHSA-68jq-c3rv-pcrr
References
Sources
- CVE-2026-40476 · CVE Program
- CVE-2026-40476 · NVD
- FIRST EPSS
- GHSA-68jq-c3rv-pcrr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences