CVE-2026-68904
node-opcua: TCP Socket Leak (FIN-WAIT-2) via keepalive reconnection cycle - Resource Exhaustion
Also known as GHSA-r2pf-9cw4-5j65
Mitigation
- Upgrade node-opcua-transport to 2.170.0 or later.
- Upgrade node-opcua-client to 2.170.0 or later.
- Upgrade node-opcua to 2.170.0 or later.
Who should check
- Projects that depend on npm package node-opcua-transport (>= 2.0.0, < 2.170.0)
- Projects that depend on npm package node-opcua-client (>= 2.0.0, < 2.170.0)
- Projects that depend on npm package node-opcua (>= 2.0.0, < 2.170.0)
- Anyone running node-opcua >= 2.0.0, < 2.170.0
Vulnerability facts
- Affected
- node-opcua-transport >= 2.0.0, < 2.170.0; node-opcua-client >= 2.0.0, < 2.170.0; node-opcua >= 2.0.0, < 2.170.0
- Fixed in
- 2.170.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: High
- EPSS
- 0.44% chance of exploitation in 30 days (percentile 30, 2026-11-26)
- CWE
- CWE-400
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm node-opcua-transport | >= 2.0.0, < 2.170.0 | 2.170.0 | osv |
| npm node-opcua-client | >= 2.0.0, < 2.170.0 | 2.170.0 | osv |
| npm node-opcua | >= 2.0.0, < 2.170.0 | 2.170.0 | osv |
| node-opcua | >= 2.0.0, < 2.170.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-68904. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-68904.md Affected: node-opcua-transport >= 2.0.0, < 2.170.0; node-opcua-client >= 2.0.0, < 2.170.0; node-opcua >= 2.0.0, < 2.170.0 Fixed in: 2.170.0 Steps: 1. Search this machine and project for node-opcua-transport (npm), node-opcua-client (npm), node-opcua (npm), node-opcua: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- 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
FAQ
Is CVE-2026-68904 being exploited?
There is no confirmed exploitation: CVE-2026-68904 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-68904?
High: CVSS 7.0 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-68904?
node-opcua-transport >= 2.0.0, < 2.170.0; node-opcua-client >= 2.0.0, < 2.170.0; node-opcua >= 2.0.0, < 2.170.0.
Is there a fix for CVE-2026-68904?
Yes. Fixed in 2.170.0. Upgrade node-opcua-transport to 2.170.0 or later. Upgrade node-opcua-client to 2.170.0 or later. Upgrade node-opcua to 2.170.0 or later.
How do I check if I'm affected by CVE-2026-68904?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.