{"id":"CVE-2026-68904","published":"2026-09-16T16:18:28Z","modified":"2026-09-16T18:34:50Z","title":"node-opcua: TCP Socket Leak (FIN-WAIT-2) via keepalive reconnection cycle - Resource Exhaustion","vendor":"node-opcua","product":"node-opcua","tier":"tail","description":{"text":"node-opcua is an OPC UA implementation for TypeScript and Node.js. From 2.0.0 until 2.170.0, node-opcua clients using the default keepSessionAlive setting can enter a repeated reconnection cycle when an OPC UA server's clock skew causes BadInvalidTimestamp responses. ClientSessionKeepAliveManager._ping_server treated the server-originated ServiceFault as a network outage and forced a transport reconnect, while ClientTCP_transport._on_ACK_response used socket.end() after failed HEL/ACK negotiation and could leave the connection in FIN-WAIT-2 when the peer did not close. Repetition at the keepAliveInterval accumulates file descriptors and memory until the client process or container can be terminated by resource exhaustion. This issue is fixed in version 2.170.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00443,"percentile":0.30397,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/node-opcua/node-opcua/security/advisories/GHSA-r2pf-9cw4-5j65","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/node-opcua/node-opcua/pull/1497","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-opcua/node-opcua/commit/1959cbb8946b386d2e24a1cce05b7148099d36e7","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-opcua/node-opcua/commit/481664fa6ba8204737c5a92797ff68c3ae780c1c","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-opcua/node-opcua/commit/4d59197e2dbd82791d7f36dad7da178715e0c27a","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-opcua/node-opcua/commit/dc406fd2d364aa69dd173be21ed32a7ff425017a","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-opcua/node-opcua/releases/tag/v2.170.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":6.08},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"node-opcua","affectedVersions":[{"vendor":"node-opcua","product":"node-opcua","versions":[">= 2.0.0, < 2.170.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-16T18:18:49.358461Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"node-opcua-transport","vulnerableRanges":[">=2.0.0, <2.170.0"],"patched":["2.170.0"],"from":["GHSA-r2pf-9cw4-5j65"],"provenance":"source"},{"ecosystem":"npm","package":"node-opcua-client","vulnerableRanges":[">=2.0.0, <2.170.0"],"patched":["2.170.0"],"from":["GHSA-r2pf-9cw4-5j65"],"provenance":"source"},{"ecosystem":"npm","package":"node-opcua","vulnerableRanges":[">=2.0.0, <2.170.0"],"patched":["2.170.0"],"from":["GHSA-r2pf-9cw4-5j65"],"provenance":"source"}],"summary":{"text":"The node-opcua library (TypeScript/Node.js OPC UA implementation) through version 2.170.0 contains a flaw in its client-side keepalive and TCP transport handling, where server-side BadInvalidTimestamp responses caused by clock skew trigger repeated reconnections that leave sockets stuck in FIN-WAIT-2. An unauthenticated network-reachable OPC UA server with clock skew can exploit this, given a client using the default keepSessionAlive setting, to cause the client process or container to accumulate file descriptors and memory until it is terminated by resource exhaustion.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:32Z"},"euvd":{"id":"EUVD-2026-80869","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-node-opcua-cve-2022-21208","parents":[{"from":"CVE-2022-21208","to":"CVE-2026-68904","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/node-opcua-transport/source/client_tcp_transport.ts"],"commits":["https://github.com/node-opcua/node-opcua/commit/33ca3bab4ab781392a2f8d8f5a14de9a0aa0e410","https://github.com/node-opcua/node-opcua/commit/dbcb5d5191118c22ee9c89332a94b94e6553d76b","https://github.com/node-opcua/node-opcua/commit/1959cbb8946b386d2e24a1cce05b7148099d36e7","https://github.com/node-opcua/node-opcua/commit/481664fa6ba8204737c5a92797ff68c3ae780c1c"],"basis":"shared function","functions":["ClientTCP_transport"]}]}],"packageHistory":[{"cve":"CVE-2022-24375","published":"2022-08-24","fixed":"2.74.0","kev":false},{"cve":"CVE-2022-25231","published":"2022-08-23","fixed":"2.74.0","kev":false},{"cve":"CVE-2026-54156","published":"2026-09-14","fixed":"2.166.0","kev":false,"link":{"from":"CVE-2026-54156","to":"CVE-2026-68904","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:node-opcua","fromFixed":"2.166.0","toFixed":"2.170.0","daysApart":2}]}},{"cve":"CVE-2026-68904","published":"2026-09-16","fixed":"2.170.0","kev":false},{"cve":"CVE-2026-95860","published":"2026-11-03","fixed":"2.180.0","kev":false,"link":{"from":"CVE-2026-68904","to":"CVE-2026-95860","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:node-opcua","fromFixed":"2.170.0","toFixed":"2.180.0","daysApart":48}]}}],"package":"npm:node-opcua"}}