Packages

@graphql-tools/executor-legacy-ws

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

Your version

1.1.35

8 Sep 2026Where it was published

1.1.39 is the newest release of 1.x.

In short

1 new

Security

Fixes 1 advisory that affected 1.1.34

Release note

The section about @graphql-tools/executor-legacy-ws of a note shared by several packages.

@graphql-tools/executor-legacy-ws@1.1.35

Patch Changes

  • Security: Enable TLS certificate validation by default for legacy GraphQL WebSocket (graphql-ws protocol) connections over wss://.

    buildWSLegacyExecutor() previously hardcoded rejectUnauthorized: false, so Node.js clients accepted any certificate (including self-signed or attacker-controlled ones). Credentials in connectionParams / headers and subscription payloads could be exposed to a network MITM. This addresses GHSA-6fw5-9hq8-w87g (CWE-295).

Corrected behavior

-   Default is now `rejectUnauthorized: true` (Node TLS verifies the peer certificate), matching secure-by-default expectations.  
-   Connections to endpoints with untrusted/self-signed certificates will fail unless you opt out.

Opt-out (trusted / local self-signed only)

```ts
buildWSLegacyExecutor(url, WebSocket, {
  rejectUnauthorized: false,
  connectionParams: { /* ... */ },
})
```

Or via `UrlLoader` / `LoadFromUrlOptions` when `subscriptionsProtocol` is `LEGACY_WS`:

```ts
{
  subscriptionsProtocol: SubscriptionProtocol.LEGACY_WS,
  rejectUnauthorized: false,
}
```

Browser WebSocket clients were never affected by this flag (browsers always validate certificates).

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.