@graphql-tools/executor-legacy-ws
2.0.9 · 10 Nov 2026MIT12.1M / weekRepositoryHomepagenpmAtom feed
1.1.39 is the newest release of 1.x.
In short
1 fixed1 internal
Security
Fixes 2 advisories that affected 1.1.35
- HighGraphQL Tools: Per-request connection parameters persist into later users' WebSocket authenticationsGHSA-434m-5hcj-pxf3 · 28 Oct 2026Fixed in 1.1.36
- ModerateGraphQL Tools: Shared legacy executor routes one subscription's results to a different callerGHSA-mp66-8ww2-pcwm · 28 Oct 2026Fixed in 1.1.36
Release note
The section about @graphql-tools/executor-legacy-ws of a note shared by several packages.
@graphql-tools/executor-legacy-ws@1.1.36
Patch Changes
Security: Isolate legacy GraphQL WebSocket executions on a shared
buildWSLegacyExecutor().A single executor reused across callers kept
extensions.connectionParamsfor the lifetime of the closure and installed onewebsocket.onmessagehandler. A later request could be authenticated with a previous caller'sconnection_initpayload (GHSA-434m-5hcj-pxf3, CWE-613), and an overlapping subscription could receive another operation'sdataframes because the handler ignored the protocol operation id (GHSA-mp66-8ww2-pcwm, CWE-200).
Corrected behavior
- Each execution opens its own socket. `connection_init` is built from the executor's base `connectionParams` plus that request's `extensions.connectionParams` only. - `data`, `error`, and `complete` frames are delivered only when `id` matches the operation that socket started. - Operation ids are no longer `Date.now()`.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.