{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-54156","id":"CVE-2026-54156","title":"node-opcua: Unbounded nonce cache enables unauthenticated heap exhaustion DoS","description":"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 ses","descriptionLong":"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.","published":"2026-09-14T16:09:07.744Z","updated":"2026-10-28T02:30:59.063661080Z","reserved":"2026-06-11T21:15:33.872Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["node-opcua"],"affectedProducts":[{"vendor":"node-opcua","product":"node-opcua","defaultStatus":null,"versions":[{"version":"< 2.166.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"node-opcua","purl":"pkg:npm/node-opcua","ranges":["<2.166.0"],"fixed":["2.166.0"],"advisory":"GHSA-6wvw-vrw4-363w"}],"cwes":["CWE-770"],"aliases":["GHSA-6wvw-vrw4-363w"],"references":[{"url":"https://github.com/node-opcua/node-opcua/security/advisories/GHSA-6wvw-vrw4-363w","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/node-opcua/node-opcua/commit/b82c2939fe9c658de58da993f2798ec5481d7313","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/node-opcua/node-opcua/releases/tag/v2.166.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54156.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54156","tags":["advisory"]},{"url":"https://github.com/node-opcua/node-opcua","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00784,"epssPercentile":0.5683,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-54156","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54156","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-54156","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6wvw-vrw4-363w","ok":true,"note":"GHSA-6wvw-vrw4-363w"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54156","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}