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

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-09-16T16:18:28.984Z
- Modified: 2026-09-30T17:51:36.337Z
- Also known as: GHSA-r2pf-9cw4-5j65
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- node-opcua node-opcua: >= 2.0.0, < 2.170.0
- node-opcua-transport (npm): from 2.0.0 before 2.170.0
- node-opcua-client (npm): from 2.0.0 before 2.170.0
- node-opcua (npm): from 2.0.0 before 2.170.0

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-68904](https://www.cve.org/CVERecord?id=CVE-2026-68904), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-r2pf-9cw4-5j65](https://github.com/advisories/GHSA-r2pf-9cw4-5j65), CC-BY-4.0, modified 2026-09-16
- NVD: [CVE-2026-68904](https://nvd.nist.gov/vuln/detail/CVE-2026-68904), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-68904 · Whole record: https://cve.day/CVE-2026-68904.json · Rebuilt by cve.day 2026-11-25T22:59:39.077Z
