{"id":"CVE-2026-54156","published":"2026-09-14T16:09:07Z","modified":"2026-09-14T16:35:48Z","title":"node-opcua: Unbounded nonce cache enables unauthenticated heap exhaustion DoS","vendor":"node-opcua","product":"node-opcua","tier":"tail","description":{"text":"node-opcua is an OPC UA implementation for TypeScript and Node.js. Prior to 2.166.0, the process-global g_alreadyUsedNonce cache used by nonceAlreadyBeenUsed in packages/node-opcua-secure-channel/source/server/server_secure_channel_layer.ts records nonces from OpenSecureChannelRequest and CreateSession without expiration or a size limit. An unauthenticated remote attacker can repeatedly create sessions with unique nonces, causing entries to persist after session expiry and accumulate across connection cycles even when maxSessions=10 limits concurrent sessions. The resulting unbounded heap growth can exhaust the default Node.js heap and crash the node-opcua server process. This issue is fixed in version 2.166.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00784,"percentile":0.52548,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/node-opcua/node-opcua/security/advisories/GHSA-6wvw-vrw4-363w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/node-opcua/node-opcua/commit/b82c2939fe9c658de58da993f2798ec5481d7313","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-opcua/node-opcua/releases/tag/v2.166.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":10.51},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"node-opcua","affectedVersions":[{"vendor":"node-opcua","product":"node-opcua","versions":["< 2.166.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-14T16:35:36.222019Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"node-opcua","vulnerableRanges":["<2.166.0"],"patched":["2.166.0"],"from":["GHSA-6wvw-vrw4-363w"],"provenance":"source"}],"summary":{"text":"The node-opcua OPC UA implementation for TypeScript and Node.js has an unbounded nonce cache (g_alreadyUsedNonce, used in the server secure channel layer) that records nonces from OpenSecureChannelRequest and CreateSession without expiration or size limits, so entries accumulate over time. An unauthenticated remote attacker over the network can repeatedly create sessions with unique nonces to grow server heap usage until the node-opcua server process crashes, requiring no authentication, user interaction, or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:34Z"},"euvd":{"id":"EUVD-2026-77624","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-21208","published":"2022-08-23","fixed":"2.74.0","kev":false},{"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},{"cve":"CVE-2026-68904","published":"2026-09-16","fixed":"2.170.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-95860","published":"2026-11-03","fixed":"2.180.0","kev":false}],"package":"npm:node-opcua"}}