---
title: "GHSA-6fw5-9hq8-w87g: GraphQL Tools: TLS Certificate Validation Disabled in Legacy GraphQL WebSocket Executor"
description: "High severity. GraphQL Tools: TLS Certificate Validation Disabled in Legacy GraphQL WebSocket Executor."
url: https://inlinr.com/advisories/GHSA-6fw5-9hq8-w87g
lang: en
---

[Packages](https://inlinr.com/packages) / [@graphql-tools/executor-legacy-ws](https://inlinr.com/packages/@graphql-tools/executor-legacy-ws) / [Security](https://inlinr.com/packages/@graphql-tools/executor-legacy-ws/security)

High Vulnerability GHSA-6fw5-9hq8-w87g CVE-2026-103921 Published 5 Oct 2026

# GraphQL Tools: TLS Certificate Validation Disabled in Legacy GraphQL WebSocket Executor

Your version 

Affected releases · [@graphql-tools/executor-legacy-ws](https://inlinr.com/packages/@graphql-tools/executor-legacy-ws)

- 1.x 1.0.0 – 1.1.34 Fixed in 1.1.35
- 0.0.x 0.0.1 – 0.0.11 No fix on this line yet

On 1.x, the newest line:

```
npm install @graphql-tools/executor-legacy-ws@1.1.35
```

Every release on a timeline

2.x 

1. Not affected

2.0.0 – 2.0.9  
10 releases, latest

1.x 

1. Affected

1.0.0 – 1.1.34  
42 releases
2. Fixed

1.1.35 – 1.1.39  
5 releases

0.x 

1. Affected

0.0.1 – 0.0.11  
11 releases

68 stable releases of @graphql-tools/executor-legacy-ws, oldest to newest, one row per major.

## What happens

Impact

`buildWSLegacyExecutor()` in [@graphql-tools/executor-legacy-ws](https://inlinr.com/packages/@graphql-tools/executor-legacy-ws) previously hardcoded `rejectUnauthorized: false` when creating WebSocket connections over WSS. This disabled TLS certificate validation, allowing a network-positioned attacker to perform a Man-in-the-Middle (MITM) attack against applications that use this executor with a `wss://` endpoint. Credentials passed via `connectionParams` or `headers` could be intercepted, and subscription data could be tampered with.

**Who is impacted:** Applications using [@graphql-tools/executor-legacy-ws](https://inlinr.com/packages/@graphql-tools/executor-legacy-ws) (directly or via [@graphql-tools/url-loader](https://inlinr.com/packages/@graphql-tools/url-loader) with `SubscriptionProtocol.LEGACY_WS`) to connect to a `wss://` endpoint from Node.js while sending authentication material over the connection.

Browser WebSocket clients are unaffected by this option (browsers always validate certificates).

Patches

Upgrade to `@graphql-tools/executor-legacy-ws@1.1.35` or later (and `@graphql-tools/url-loader@9.1.9` or later if you use the loader). TLS certificate validation is enabled by default. Callers that intentionally use self-signed certificates in trusted environments can opt out with `rejectUnauthorized: false`.

Workarounds

- Prefer the modern `graphql-ws` / `SubscriptionProtocol.WS` path where possible.
- Until upgraded, avoid sending secrets over legacy WSS connections, or terminate TLS at a trusted proxy and use `ws://` only on trusted networks.
- Supply a custom `webSocketImpl` that enforces certificate validation.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: none

CVSS:3.1/​AV:N/​AC:H/​PR:N/​UI:N/​S:U/​C:H/​I:H/​A:N

## References

- [Reference](https://github.com/ardatan/graphql-tools/security/advisories/GHSA-6fw5-9hq8-w87g "https://github.com/ardatan/graphql-tools/security/advisories/GHSA-6fw5-9hq8-w87g")  
github.com/ardatan/graphql-tools/security/advis…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-103921 "https://nvd.nist.gov/vuln/detail/CVE-2026-103921")  
nvd.nist.gov/vuln/detail/CVE-2026-103921
- [Pull request](https://github.com/ardatan/graphql-tools/pull/8426 "https://github.com/ardatan/graphql-tools/pull/8426")  
#8426
- [Fix commit](https://github.com/ardatan/graphql-tools/commit/3831a0661514c91d99971052f983552556880402 "https://github.com/ardatan/graphql-tools/commit/3831a0661514c91d99971052f983552556880402")  
3831a06
- [Package](https://github.com/ardatan/graphql-tools "https://github.com/ardatan/graphql-tools")  
github.com/ardatan/graphql-tools
- [Reference](https://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/executor-legacy-ws@1.1.35 "https://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/executor-legacy-ws@1.1.35")  
github.com/ardatan/graphql-tools/releases/tag/@…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
