@graphql-tools/executor-legacy-ws (JavaScript package (npm)) has a high-severity security problem: GraphQL Tools: Per-request connection parameters persist into later users' WebSocket authentications.
Am I affected?
Yes, if your website or app uses @graphql-tools/executor-legacy-ws <= 1.1.35 (JavaScript package (npm)), directly or as a dependency of another package. WordPress sites usually are not affected unless a plugin or custom code bundles it.
What to do
- 1Check if you use itSearch your project's dependency files (composer.json, package.json, requirements.txt or lock files) for @graphql-tools/executor-legacy-ws, including as a dependency of another package.
- 2Update to 1.1.36 or laterUpdate the package, run your tests and deploy. For example: npm install @graphql-tools/[email protected]
- 3Ask your developerIf your site or app was built by someone else, send them this page. A WordPress plugin can bundle this package too.
Technical summary
# Stale authentication state in `@graphql-tools/executor-legacy-ws`: per-request `extensions.connectionParams` persist in executor closure state and are replayed in a later caller's `connection_init` ## Report metadata | Field | Value | | --- | --- | | Package | `@graphql-tools/executor-legacy-ws` (npm, `pkg:npm/%40graphql-tools/executor-legacy-ws`) | | Repository | https://github.com/ardatan/graphql-tools | | Component | `buildWSLegacyExecutor` (`packages/executors/legacy-ws/src/index.ts`) | | Vulnerability class | Stale authentication state / credential reuse across requests | | Verified…