GHSA-6fw5-9hq8-w87g: High severity npm/@graphql-tools/executor-legacy-ws vulnerability

Published Oct 5, 2026
·
Updated

Impact

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.

Who is impacted: Applications using @graphql-tools/executor-legacy-ws (directly or via @graphql-tools/url-loader with SubscriptionProtocol.LEGACYWS) 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.

Affected Software

1 affected componentFixes available
npm/@graphql-tools/executor-legacy-ws<=1.1.34
1.1.35

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@graphql-tools/executor-legacy-ws to a version that resolves this vulnerability.

    Fixed in 1.1.35
  2. Upgrade

    Upgrade @graphql-tools/executor-legacy-ws to a version that resolves this vulnerability.

    Fixed in 1.1.35
  3. Upgrade

    Upgrade @graphql-tools/url-loader to a version that resolves this vulnerability.

    Fixed in 9.1.9
  4. Configuration

    Prefer the modern graphql-ws path by using SubscriptionProtocol.WS instead of SubscriptionProtocol.LEGACY_WS where possible

    GraphQL subscription client SubscriptionProtocol = WS
  5. Configuration

    Supply a custom webSocketImpl that enforces TLS certificate validation

    @graphql-tools/executor-legacy-ws webSocketImpl
  6. Compensating control

    Until upgraded, avoid sending secrets over legacy WSS connections, or terminate TLS at a trusted proxy and use ws:// only on trusted networks

Event History

Oct 5, 2026
Advisory Published
via GitHub·10:56 PM
Data Sourced
via GitHub·10:56 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

Affected deployments are Node.js applications using @graphql-tools/executor-legacy-ws directly, or through @graphql-tools/url-loader with SubscriptionProtocol.LEGACY_WS, to connect to a wss:// endpoint while sending authentication material. Browser WebSocket clients are unaffected because browsers validate certificates.

2

What must an attacker be able to do, and what could they obtain or change?

An attacker must be positioned on the network path to perform a man-in-the-middle attack against the WSS connection. They could intercept credentials sent through connectionParams or headers and tamper with subscription data.

3

Does a normal configuration validate WSS certificates?

Previously, buildWSLegacyExecutor() hardcoded rejectUnauthorized: false, disabling TLS certificate validation for its WSS connections. In @graphql-tools/executor-legacy-ws 1.1.35 and later, certificate validation is enabled by default.

4

What versions should be deployed to remediate this issue?

Upgrade @graphql-tools/executor-legacy-ws to version 1.1.35 or later. If using @graphql-tools/url-loader, upgrade it to version 9.1.9 or later.

5

Can an application continue using a self-signed certificate?

Callers using self-signed certificates in trusted environments can explicitly set rejectUnauthorized: false. Doing so opts out of certificate validation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203