CVE-2026-40476 MEDIUM

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

Vendor Webonyx
Product graphql-php
Weakness CWE-407
Published April 17, 2026
Last update April 20, 2026

CVSS base score

6.9/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

What the vulnerability does

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.

Key dates

Disclosure timeline

April 17, 2026 CVE published
April 20, 2026 Record updated