Oct 6, 2026·6 min read·21 visits
Unauthenticated remote attackers can trigger a Node.js process crash and Denial of Service in @socket.io/cluster-engine by passing prototype-inherited properties as session IDs.
A critical Denial of Service (DoS) vulnerability exists in @socket.io/cluster-engine before version 0.1.1. Unauthenticated remote attackers can crash the server process by supplying inherited prototype property names as session identifiers.
The @socket.io/cluster-engine package is an essential component designed to coordinate clustered engine deployments within the socket.io ecosystem. This component manages client socket session states and synchronizes them across multiple worker processes. The vulnerability, designated as CVE-2026-102600, represents a failure to validate user-controlled input keys before dynamically reading object properties.
An unauthenticated remote attacker can exploit this flaw to trigger a denial of service on target application nodes. By providing a specially crafted session identifier during handshakes or cluster messaging, the attacker causes the application to retrieve properties from the base JavaScript object prototype. This bypasses the registry check and leads to fatal runtime exceptions that crash the Node.js process.
The weakness lies in how JavaScript lookup mechanics resolve properties on plain objects. When the package performs an implicit lookup for a socket session, the absence of explicit checks allows the engine to retrieve base prototype constructors as valid client objects. Because this occurs in critical, unhandled event paths, the subsequent execution failure terminates the host process immediately.
JavaScript applications frequently utilize plain objects ({}) as dynamic associative arrays or key-value lookup tables. In standard ECMAScript implementations, these plain objects inherit a variety of default properties and helper functions from Object.prototype. These default properties include built-in keys like __proto__, constructor, toString, and hasOwnProperty.
When a program performs a bracket lookup (e.g., this.clients[sid]) with user-supplied input, JavaScript evaluates whether the key exists directly on the target object. If the key is not defined as an own property, the runtime engine traverses up the prototype chain. If the key matches a prototype property name like __proto__, the lookup evaluates to Object.prototype instead of returning undefined.
In @socket.io/cluster-engine versions prior to 0.1.1, the internal client registry this.clients was stored as a plain JavaScript object. The lookup logic did not verify if the requested key was a direct, own property of the registry. Consequently, supplying __proto__ as the session ID returned a valid, truthy object, bypassing basic presence checks and setting up the application for downstream type errors.
The vulnerability is localized to several lookup locations within the ClusterEngine class defined in packages/socket.io-cluster-engine/lib/engine.ts. The following diagram illustrates the flow of a message packet containing a malicious session identifier:
Prior to the patch, when processing cluster messages of type MessageType.PACKET, the engine resolved the socket client using direct index access with the session ID (message.data.sid). Because the application does not validate the structure of the incoming session identifier, an attacker can input a reserved prototype key.
// Vulnerable code in engine.ts before 0.1.1
case MessageType.PACKET: {
const client = this.clients[message.data.sid];
if (!client) {
return;
}
// If sid is '__proto__', client evaluates to Object.prototype
// This throws a TypeError since Object.prototype has no onPacket method
client.onPacket(message.data.packet);
}The fix introduces a defensive lookup function named safeGet. This helper enforces that only own properties of the lookup dictionary are returned, preventing prototype traversal.
// Patched implementation in engine.ts
function safeGet<T>(obj: Record<string, T>, key: string): T | undefined {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
return obj[key];
}
}By passing all dynamic lookups through safeGet(this.clients, sid), any attempt to query __proto__ or constructor will return undefined, resolving the lookup safely and terminating execution before invoking non-existent properties on standard JavaScript built-ins.
To execute the denial of service vector, an attacker must target the exposed socket-coordinating paths of an application leveraging @socket.io/cluster-engine. No authentication is required to interact with the engine. The attacker must only possess the ability to transmit crafted messages or connection handshakes directly to the exposed cluster transport interface.
The attack begins when the client establishes a standard Socket.IO connection request, supplying a reserved keyword like __proto__ inside the sid query parameter. Alternatively, the attacker can send a direct cluster messaging frame containing the malicious session ID payload. Because the framework attempts to map the session ID to an active state, the internal routing logic triggers the lookup sequence.
Once the lookup resolves to the base prototype, the engine treats it as a legitimate connection client and attempts to invoke event hooks. This immediate attempt to execute class-specific methods on Object.prototype causes the application thread to throw a TypeError. Because these events are processed within asynchronous callbacks without global error boundaries, the exception bubbles up, forcing Node.js to exit the main thread.
The security impact of CVE-2026-102600 is classified as high, receiving a CVSS base score of 7.5. The primary consequence is a complete Denial of Service (DoS) of the affected application server. The vulnerability does not directly expose application data, modify system configurations, or permit arbitrary code execution.
However, in clustered Node.js environments, worker nodes are typically designed to auto-restart upon a crash. A continuous stream of malicious payloads targeting the prototype properties will repeatedly crash any newly spawned worker processes. This dynamic creates a persistent resource exhaustion state, blocking all legitimate client traffic indefinitely.
Because the socket endpoints are publicly accessible to facilitate client handshakes, the attack vector has high reachability. An attacker does not require any special privileges or specialized network tools to deliver the crashing payload.
The primary remediation path is upgrading the @socket.io/cluster-engine dependency to version 0.1.1 or higher. This update replaces all direct object indexing inside the handshake and socket event paths with the defensive safeGet helper. The updated library successfully handles prototype lookup bypasses by falling back to standard missing-client behaviors.
If upgrading is not immediately possible, organizations can apply temporary mitigations at the application layer or reverse proxy tier. A reverse proxy or web application firewall can inspect incoming request query strings for socket paths. Requests with query parameters matching sid=__proto__, sid=constructor, or sid=prototype should be dropped immediately before they reach the Node.js application process.
Additionally, developers should adopt secure coding standards to prevent prototype-based lookups in other areas of their codebase. Initializing lookup dictionaries using Object.create(null) removes the prototype chain entirely, ensuring that properties like __proto__ resolve to undefined by default without helper wrappers.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
@socket.io/cluster-engine Socket.IO | < 0.1.1 | 0.1.1 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-20 |
| Attack Vector | Network |
| CVSS Score | 7.5 (High) |
| EPSS Score | 0.00366 (Percentile: 28.17%) |
| Impact | Denial of Service |
| Exploit Status | None |
| KEV Status | Not listed |
The product receives input that is expected to have certain properties or values but does not validate or incorrectly validates these properties.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.
CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.
Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.