# CVE-2026-54156: node-opcua: Unbounded nonce cache enables unauthenticated heap exhaustion DoS

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-08-20T18:35:41.000Z
- Modified: 2026-09-30T19:38:27.293Z
- Also known as: GHSA-6wvw-vrw4-363w
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- node-opcua node-opcua: < 2.166.0
- node-opcua (npm): before 2.166.0

## Every score

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

## References

- <https://github.com/node-opcua/node-opcua/security/advisories/GHSA-6wvw-vrw4-363w> (web)
- <https://github.com/node-opcua/node-opcua/commit/b82c2939fe9c658de58da993f2798ec5481d7313> (web)
- <https://github.com/node-opcua/node-opcua/releases/tag/v2.166.0> (web)
- <https://github.com/node-opcua/node-opcua> (package)

## Sources

- CVE List: [CVE-2026-54156](https://www.cve.org/CVERecord?id=CVE-2026-54156), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-6wvw-vrw4-363w](https://github.com/advisories/GHSA-6wvw-vrw4-363w), CC-BY-4.0, modified 2026-08-27
- NVD: [CVE-2026-54156](https://nvd.nist.gov/vuln/detail/CVE-2026-54156), Public domain, modified 2026-09-30

---

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