Packages

@graphql-tools/url-loader

10.0.9 · 10 Nov 2026MIT15.7M / weekRepositoryHomepagenpmAtom feed

Your version

9.1.9

8 Sep 2026Where it was published

9.1.14 is the newest release of 9.x.

In short

1 new1 internal

Release note

The section about @graphql-tools/url-loader of a note shared by several packages.

@graphql-tools/url-loader@9.1.9

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.