CVE-2026-118665 GraphQL Tools: Per-request connection parameters persist into later users' WebSocket authentications
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-118665?
CVE-2026-118665 is a high-severity vulnerability in @graphql-tools executor-legacy-ws, published on 28 Oct 2026.
Official description
GraphQL Tools provides utilities for building, stitching, and mocking GraphQL schemas. Prior to version 1.1.36 of the GraphQL Tools legacy WebSocket executor package, buildWSLegacyExecutor in packages/executors/legacy-ws/src/index.ts retains request.extensions.connectionParams in the closure-scoped executorConnectionParams object after cleanupWebsocket closes a connection. When one executor is reused across different authorization contexts, a later request that omits a sensitive key can send an earlier caller's Authorization or tenant value in its connection_init payload, causing the downstream server to authenticate the later caller as the earlier user. Applications that create a new executor for every request are not affected. This issue is fixed in version 1.1.36 of the GraphQL Tools legacy WebSocket executor package.
Weakness: CWE-613
Which versions are affected by CVE-2026-118665?
2 open source packages ship an affected version, including @graphql-tools/executor-legacy-ws.
| Package | Affected | Fixed in |
|---|---|---|
@graphql-tools/executor-legacy-ws npm | All versions | 1.1.36 |
@graphql-tools/executor-legacy-ws npm | All versions | 1.1.36 |
How do I fix CVE-2026-118665?
Upgrade @graphql-tools/executor-legacy-ws to 1.1.36 or later.
Is CVE-2026-118665 being exploited?
There is no known exploitation of CVE-2026-118665 in the wild and no public exploit code.
Sources
Also known as GHSA-434m-5hcj-pxf3.