Summary
CVE-2026-107376 is an uncontrolled recursion vulnerability (CWE-674) in the GraphQL query parser of webonyx/graphql-php. A remote, unauthenticated attacker can send a deeply nested GraphQL document that exhausts the process stack and crashes the PHP process. The CVSS v3.1 base score is 8.2 (High).
Technical details
- Root cause:
GraphQL\Language\Parseruses recursive descent, with no recursion depth limit, inparseSelectionSet,parseValueLiteralandparseTypeReference. The vendor advisory notes the parser has nomaxTokens,maxDepthormaxRecursionDepthcontrol. - Trigger conditions: The application parses attacker-supplied GraphQL input, for example through an exposed GraphQL endpoint. The crash happens during parsing, before any validation rules run.
- Attack vector: Network. No authentication or user interaction is required.
- Impact: Deep nesting exhausts the C stack (typically 8 MB) and causes a SIGSEGV. The advisory puts the crash at roughly 26,000–37,000 nesting levels, depending on the construct. The signal cannot be caught by PHP try/catch, so the worker process is terminated (PHP-FPM workers and other long-running processes). The advisory states that a payload of about 74 KB is enough, which is below typical HTTP request size limits. Repeated requests can sustain the denial of service. The CVSS vector also rates integrity impact as Low.
Affected software
- webonyx/graphql-php versions prior to 15.32.3 (the advisory lists 15.32.2 and earlier as affected)
Severity
- CVSS v3.1 base score: 8.2 (High)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Mitigation and recommended actions
- Immediate: Upgrade webonyx/graphql-php to version 15.32.3 or later.
- If you cannot patch immediately: The vendor advisory and CVE record do not document a workaround. As general hardening, restrict access to GraphQL endpoints where possible and monitor for repeated PHP worker crashes (exit code 139 / SIGSEGV).

