Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
node-opcua node-opcua
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

node-opcua 是面向 TypeScript 和 Node.js 的 OPC UA 实现。在 2.166.0 版本之前, 中由 使用的进程级全局 缓存,会记录来自 和 的非重复值(nonce),但这些记录既没有过期机制,也没有大小限制。未经身份验证的远程攻击者可以通过反复创建带有唯一 nonce 的会话,导致这些条目在会话过期后仍然保留,并随着连接周期的循环不断累积,即使 限制了并发会话数量。由此产生的无界堆内存增长可能导致默认的 Node.js 堆内存耗尽,从而使 node-opcua 服务器进程崩溃。该问

CVSS 7.5 · High

Possible ATT&CK Techniques 1 AI

T1291

Affected Version Matrix 1

VendorProduct Version RangeStatus
node-opcua node-opcua < 2.166.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54156

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
node-opcua: Unbounded nonce cache enables unauthenticated heap exhaustion DoS
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
不加限制或调节的资源分配
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
node-opcua node-opcua < 2.166.0 -

II. Public POCs for CVE-2026-54156

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54156

登录查看更多情报信息。

Patches & Fixes for CVE-2026-54156 (1)

Vendor Advisories for CVE-2026-54156 (1)

Vendor Pages for CVE-2026-54156 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-54156

No comments yet


Leave a comment