High severity7.5NVD Advisory· Published Apr 17, 2026· Updated May 21, 2026
CVE-2026-40476
CVE-2026-40476
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
webonyx/graphql-phpPackagist | < 15.31.5 | 15.31.5 |
Affected products
3(expand)+ 1 more
- (no CPE)
- cpe:2.3:a:webonyx:graphql-php:*:*:*:*:*:*:*:*range: <15.31.5
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-68jq-c3rv-pcrrghsaADVISORY
- github.com/webonyx/graphql-php/security/advisories/GHSA-68jq-c3rv-pcrrnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-40476ghsaADVISORY
- github.com/webonyx/graphql-php/releases/tag/v15.31.5nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.