Ardatan graphql-tools
GraphQL Tools: TLS Certificate Validation Disabled in Legacy GraphQL WebSocket Executor
GraphQL Tools provides utilities for building, stitching, and mocking GraphQL schemas. Prior to 1.1.35, the executor-legacy-ws buildWSLegacyExecutor() function hardcodes TLS certificate rejection off for Node.js connections to wss:// endpoints. Applications using the executor directly, or url-loader with SubscriptionProtocol.LEGACY_WS, can therefore accept an attacker-controlled certificate when a network-positioned attacker intercepts the connection. Authentication material in connectionParams or headers can be disclosed, and subscription data can be modified. Browser WebSocket clients are unaffected because browsers enforce certificate validation. This issue is fixed in version 1.1.35.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.1.35
Fixed in 1.1.35
- < 1.1.35
Fixed in 1.1.35
Mitigation
Upgrade graphql-tools to 1.1.35 or later.
Upgrade executor-legacy-ws to 1.1.35 or later.
References
- Vendor advisory github.com/ardatan/graphql-tools/security/advi…
- Patch github.com/ardatan/graphql-tools/pull/8426
- Patch github.com/ardatan/graphql-tools/commit/3831a0…
1 more
- Release notes github.com/ardatan/graphql-tools/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.