High · 8.2 Node.js & npm GHSA-mp66-8ww2-pcwm CVE-2026-118666 GHSA-434m-5hcj-pxf3 CVE-2026-118665
GraphQL Tools Legacy WebSocket Executor: Two Flaws Allow Cross-User Data Leakage and Authentication Mix-Up
Two vulnerabilities in the @graphql-tools/executor-legacy-ws package can cause subscription data and authentication context to be mixed up between different users sharing the same WebSocket executor. Both are fixed in version 1.1.36.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
Two related vulnerabilities have been identified in the legacy WebSocket executor shipped as part of GraphQL Tools, affecting the npm package @graphql-tools/executor-legacy-ws. Both issues stem from the way a single executor instance can be reused across multiple callers, and both are resolved in version 1.1.36. Applications that create a new executor for every request are not affected by either issue.
What happened
Two separate CVEs were published for the GraphQL Tools legacy WebSocket executor package. The first, CVE-2026-118666, describes a flaw where buildWSLegacyExecutor reuses a single WebSocket connection and replaces its onmessage handler whenever a new overlapping subscription starts. Because the handler delivers data frames to the newest observer without verifying that the data's operation id matches the expected subscription, one caller can receive another user's authorized subscription payload while the original caller's stream stalls. The second, CVE-2026-118665, describes a related issue where per-request connection parameters (such as an Authorization header or tenant identifier) are retained in a closure-scoped object after a connection is closed. If the same executor is reused across different authorization contexts, a later request that omits a sensitive key can inadvertently send an earlier caller's credentials, causing the downstream server to authenticate the new caller as the earlier user.
Technical cause
Both issues originate in buildWSLegacyExecutor in the legacy-ws executor package. For CVE-2026-118666, a single WebSocket's onmessage handler is overwritten on each new overlapping subscription, and incoming LEGACY_WS.DATA frames are routed to the most recently registered observer without checking the data.id against the subscription's operation id. For CVE-2026-118665, request.extensions.connectionParams values are stored in a closure-scoped executorConnectionParams object that is not cleared after cleanupWebsocket closes a connection, allowing stale sensitive values to be reused in a subsequent connection_init payload.
Why it matters
Both flaws result in exposure of sensitive information to an unauthorized actor when a single executor instance is shared across multiple requests or users. CVE-2026-118666 is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and can let one user see subscription data intended for another. CVE-2026-118665 is classified under CWE-613 (Insufficient Session Expiration) and is more severe, since leaked connection parameters can cause the downstream server to authenticate a caller as a different, earlier user, effectively letting the wrong caller act within another user's authorization context.
Who is affected
Any application using the @graphql-tools/executor-legacy-ws npm package where a single executor instance is reused across multiple requests or authorization contexts is potentially affected. The advisories explicitly note that applications that create a new executor for every request are not affected by either issue.
Affected versions
Versions of @graphql-tools/executor-legacy-ws up to and including 1.1.35 are affected by both CVE-2026-118666 and CVE-2026-118665. Version 1.1.36 contains fixes for both issues.
Fixes and mitigation
Both vulnerabilities are fixed in version 1.1.36 of @graphql-tools/executor-legacy-ws. As a mitigation for environments that cannot update immediately, the advisories note that creating a new executor instance for every request avoids both issues, since the underlying flaws only manifest when a single executor is reused across callers.
Recommended action
Update @graphql-tools/executor-legacy-ws to version 1.1.36 as soon as possible. If an immediate update is not feasible, ensure your application creates a new executor instance per request rather than reusing a single shared executor across multiple callers.
PatchBriefing score
8.2 / 10 · High
Official CVSS: 8.2
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
EPSS 0.0046 (32 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- @graphql-tools/executor-legacy-ws <= 1.1.35
- vulnerable
- @graphql-tools/executor-legacy-ws ≥ 0 < 1.1.36
- vulnerable
- ≥ 1.1.36
- patched
- @graphql-tools/executor-legacy-ws <= 1.1.35
- vulnerable
- @graphql-tools/executor-legacy-ws ≥ 0 < 1.1.36
- vulnerable
- ≥ 1.1.36
- patched
Reported fixes
Both vulnerabilities are fixed in version 1.1.36 of @graphql-tools/executor-legacy-ws. As a mitigation for environments that cannot update immediately, the advisories note that creating a new executor instance for every request avoids both issues, since the underlying flaws only manifest when a single executor is reused across callers.
How this was built
6 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
GitHub Advisory Database database
-
NVD (NIST) database
-
NVD (NIST) database
-
OSV.dev database
-
OSV.dev database
Revision history
- Published
- Generated
- Published
- Generated