GraphQL Tools credential leakage in legacy WebSocket executor
ardatan graphql-tools · @graphql-tools executor-legacy-ws
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @graphql-tools/executor-legacy-ws npm |
|
|
Original 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.
From the CVE record · GitHub_M
References
- github.com/ardatan/graphql-tools/security/advisories/GHSA-434m-5hcj-pxf3Exploit
- github.com/ardatan/graphql-tools/pull/8480
- github.com/ardatan/graphql-tools/commit/c2f226e6f68236be9e4a577f29faeaa92547458b
- github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/executor-legacy-ws@1.1.36
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118665.json
- nvd.nist.gov/vuln/detail/CVE-2026-118665
- github.com/ardatan/graphql-tools