Vulnerability
CVE-2026-118665
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.
15 advisories report this vulnerability, across 2 ecosystems.
Advisories
- CGA-3qm8-qqjf-2mwp
- CGA-444p-hv9w-7g97
- CGA-4x8r-97r9-rvmx
- CGA-5wpr-c2jj-383v
- CGA-6mwj-28fx-j25v
- CGA-9822-26hh-c4hx
- CGA-f5f7-xm3c-pv89
- CGA-hx6g-qxc4-8jx4
- CGA-mhj7-3r7g-fp9r
- CGA-p245-qc57-fh2g
- CGA-p9jw-4g24-jhh8
- CGA-pp4v-4vhq-6x8m
- CGA-rmxq-jvgr-42f4
- CGA-xp3w-c4x5-grhv
-
GHSA-434m-5hcj-pxf3
GraphQL Tools: Per-request connection parameters persist into later users' WebSocket authentications
References
- https://github.com/ardatan/graphql-tools/commit/c2f226e6f68236be9e4a577f29faeaa92547458b
- https://github.com/ardatan/graphql-tools/pull/8480
- https://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/[email protected]
- https://github.com/ardatan/graphql-tools/security/advisories/GHSA-434m-5hcj-pxf3