All vulnerabilities

npm

CVE-2026-118666

GraphQL Tools: Shared legacy executor routes one subscription's results to a different caller

Severity
Medium
Published
28 Oct 2026
Last changed
28 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.1.36
Exploit chance
0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Information exposure (CWE-200)
Also known as
GHSA-mp66-8ww2-pcwm
Sources
OSV.dev and GitHub

Description

Affected version range: the range recorded for this finding is <= 1.1.33, but that is understated — the same proof of concept reproduces on 1.1.35, and a byte diff of the built CJS output between 1.1.33 and 1.1.35 shows only one unrelated change (rejectUnauthorized).

buildWSLegacyExecutor keeps one WebSocket in closure state and installs the message handler by assigning to the socket's single websocket.onmessage property inside subscribe(). Every new subscription therefore overwrites the previous subscriber's handler, and the handler's case LEGACY_WS.DATA branch calls observer.next(data.payload) without ever comparing data.id to the operation id that this subscription created at line 103 and sent with START at line 123. When one executor instance is reused for overlapping subscriptions, the most recent caller receives payloads belonging to the earlier caller, and the earlier caller receives nothing.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
@graphql-tools/executor-legacy-wsnpm · osv:npm:@graphql-tools/executor-legacy-ws
  • Every version before 1.1.36

About @graphql-tools/executor-legacy-ws

Weekly downloads (npm)
12,192,268npm, 23 Nov 2026

Vulnerabilities in @graphql-tools/executor-legacy-ws

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for @graphql-tools/executor-legacy-ws

References