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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Published: 2026-04-14T01:05:05.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-68jq-c3rv-pcrr
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- webonyx graphql-php: < 15.31.5; before 15.31.5
- webonyx/graphql-php (Packagist): before 15.31.5

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/webonyx/graphql-php/security/advisories/GHSA-68jq-c3rv-pcrr> (vendor-advisory, web)
- <https://github.com/webonyx/graphql-php/releases/tag/v15.31.5> (release-notes, web)
- <http://www.openwall.com/lists/oss-security/2026/09/14/26>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40476> (advisory)
- <https://github.com/webonyx/graphql-php> (package)

## Sources

- CVE List: [CVE-2026-40476](https://www.cve.org/CVERecord?id=CVE-2026-40476), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-68jq-c3rv-pcrr](https://github.com/advisories/GHSA-68jq-c3rv-pcrr), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40476](https://nvd.nist.gov/vuln/detail/CVE-2026-40476), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40476 · Whole record: https://cve.day/CVE-2026-40476.json · Rebuilt by cve.day 2026-11-25T22:59:18.975Z
