{"id":"GHSA-6fw5-9hq8-w87g","revision":"a60e707f883c4359b139e4f9d9e3d175","records":[{"revision":"a60e707f883c4359b139e4f9d9e3d175","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-6fw5-9hq8-w87g","aliases":["CVE-2026-103921"],"title":"GraphQL Tools: TLS Certificate Validation Disabled in Legacy GraphQL WebSocket Executor","description":"## Impact\n\n`buildWSLegacyExecutor()` in `@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.\n\n**Who is impacted:** Applications using `@graphql-tools/executor-legacy-ws` (directly or via `@graphql-tools/url-loader` with `SubscriptionProtocol.LEGACY_WS`) to connect to a `wss://` endpoint from Node.js while sending authentication material over the connection.\n\nBrowser WebSocket clients are unaffected by this option (browsers always validate certificates).\n\n## Patches\n\nUpgrade 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`.\n\n## Workarounds\n\n- Prefer the modern `graphql-ws` / `SubscriptionProtocol.WS` path where possible.\n- Until upgraded, avoid sending secrets over legacy WSS connections, or terminate TLS at a trusted proxy and use `ws://` only on trusted networks.\n- Supply a custom `webSocketImpl` that enforces certificate validation.","state":0,"publishedAt":"2026-10-05T22:56:56+00:00","modifiedAt":"2026-10-05T23:15:03.9963052+00:00","affected":[{"ecosystem":"npm","name":"@graphql-tools/executor-legacy-ws","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.1.35"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/ardatan/graphql-tools/security/advisories/GHSA-6fw5-9hq8-w87g","https://nvd.nist.gov/vuln/detail/CVE-2026-103921","https://github.com/ardatan/graphql-tools/pull/8426","https://github.com/ardatan/graphql-tools/commit/3831a0661514c91d99971052f983552556880402","https://github.com/ardatan/graphql-tools","https://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/executor-legacy-ws@1.1.35"],"sourceUrl":"https://github.com/advisories/GHSA-6fw5-9hq8-w87g","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6fw5-9hq8-w87g","identifiers":["GHSA-6fw5-9hq8-w87g","CVE-2026-103921"]},"retained":false,"historicalAffected":[]}],"coverage":[]}