Packages

@graphql-tools/executor-legacy-ws

2.0.9 · 10 Nov 2026MIT12.1M / weekRepositoryHomepagenpmAtom feed

Your version

1.1.36

30 Sep 2026Where it was published

1.1.39 is the newest release of 1.x.

In short

1 fixed1 internal

Security

Fixes 2 advisories that affected 1.1.35

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.connectionParams for the lifetime of the closure and installed one websocket.onmessage handler. A later request could be authenticated with a previous caller's connection_init payload (GHSA-434m-5hcj-pxf3, CWE-613), and an overlapping subscription could receive another operation's data frames 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.