Vulnerability · Published Oct 8, 2026 · Assigned by GitHub_M
CVE-2026-107376webonyx graphql-php: Unbounded recursion in parser causes stack overflow on crafted nested input
High 8.2
In plain English
A high-severity security flaw in graphql-php from webonyx. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
webonyx graphql-php is a PHP implementation of the GraphQL specification. Prior to 15.32.3, GraphQL\Language\Parser performs recursive descent without a recursion limit in parseSelectionSet, parseValueLiteral, and parseTypeReference. A remote attacker can submit deeply nested selection sets, object or list values, or list types that exhaust the PHP process stack during pre-validation parsing, before query validation and complexity controls run. The resulting SIGSEGV can terminate PHP-FPM workers or long-running Swoole, RoadRunner, ReactPHP, or CLI processes and cannot be caught by application-level exception handling. This issue is fixed in version 15.32.3.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | webonyx/graphql-php | 15.32.3 | GHSA-r7cg-qjjm-xhqq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| webonyx | graphql-php | < 15.32.3 |
Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
References
- https://github.com/webonyx/graphql-php/security/advisories/GHSA-r7cg-qjjm-xhqq x_refsource_CONFIRM
- https://github.com/webonyx/graphql-php/commit/6c1d6009a0f7557f66753bcfd07badd15acf77f4 x_refsource_MISC
- https://github.com/webonyx/graphql-php/commit/7b7f2080ca5f7d5340a696fc5701b19a9222d2c2 x_refsource_MISC
- https://github.com/webonyx/graphql-php/releases/tag/v15.32.3 x_refsource_MISC