CVE-2026-54156: node-opcua · Unbounded nonce cache enables unauthenticated heap exhaustion DoS
Affects node-opcuaSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 2.166.0 soon.
Data as of 26 Nov 2026, 14:59 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.166.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Oct 2026.
What to do
Upgrade node-opcua to 2.166.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmnode-opcua | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available to address this vulnerability by adding a TTL-based eviction policy to the nonce cache (g_alreadyUsedNonce). Nonces should expire after the maximum session timeout or a reasonable fixed window, preventing unbounded memory growth. Users should upgrade to node-opcua version 2.166.0 or later where this fix is implemented.
Description
A vulnerability in node-opcua versions prior to 2.166.0 allows an unauthenticated remote attacker to exhaust server heap memory by exploiting an unbounded nonce cache. The cache, used for replay detection, does not evict entries, enabling heap exhaustion through repeated session creation requests. This leads to denial of service by crashing the server process.
References
- github.com/node-opcua/node-opcua/security/advisories/GHSA-6wvw-vrw4-363w (opens in a new tab)
- github.com/node-opcua/node-opcua/commit/b82c2939fe9c658de58da993f2798ec5481d7313 (opens in a new tab)
- github.com/node-opcua/node-opcua (opens in a new tab)
- github.com/node-opcua/node-opcua/releases/tag/v2.166.0 (opens in a new tab)