Skip to main content

node-opcua CVE-2026-54156

| EUVDEUVD-2026-77624 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-08-20 https://github.com/node-opcua/node-opcua GHSA-6wvw-vrw4-363w
7.5
CVSS 3.1 · Vendor: https://github.com/node-opcua/node-opcua
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to OPC-UA TCP port
  2. Delivery
    Send CreateSession with unique nonce (no cert required)
  3. Exploit
    Close connection (nonce persists in server cache)
  4. Execution
    Repeat across thousands of connection cycles
  5. Persist
    Heap grows beyond Node.js limit
  6. Impact
    Server process crashes (OOM)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions are required beyond TCP network access to the OPC-UA server port. The vulnerable CreateSession OPC-UA path requires no client certificate and no prior authentication, directly matching the CVSS AV:N/AC:L/PR:N/UI:N vector. The nonce accumulation persists even when the server's maxSessions limit (e.g., default 10) bounds concurrent active sessions, because expired session nonces are never evicted from the cache. Exploitation is not gated by any configuration flag, non-default deployment mode, or platform-specific condition - any node-opcua server instance version ≤ 2.165.0 reachable over the network is vulnerable. The only practical limiting factor is the time required to accumulate sufficient nonces relative to the Node.js process heap size configured in the environment.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) is internally consistent and accurately reflects the attack surface: zero prerequisites beyond network reachability, no authentication, no complexity barrier, with complete availability loss as the sole impact. The researcher empirically confirmed heap growth (5,000 nonces → +1.23 MB; projected 10^6 nonces → ~246 MB), placing achievable crash well within default Node.js heap limits using repeated connection cycling - no exploit sophistication required. This CVE is not listed in the CISA KEV catalog and no EPSS score was provided in the intelligence feed, so exploitation prevalence in the wild remains unconfirmed. Impact is strictly bounded to availability - no confidentiality or integrity exposure exists. The risk is most acute for internet-facing or OT-network-exposed node-opcua deployments common in industrial environments; air-gapped or firewall-restricted deployments face substantially lower real-world risk despite the high CVSS score.

Exploit ScenarioDerived

An unauthenticated attacker with TCP access to the OPC-UA server port runs a loop that opens a CreateSession request using a unique nonce per iteration and immediately closes the connection. Because the server records each nonce permanently in the process-global cache, heap memory grows monotonically across millions of iterations. After sufficient accumulation - achievable with a single-threaded script over hours - the Node.js process hits its heap limit and crashes, taking down any dependent industrial control, IoT, or automation systems relying on the OPC-UA server.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 20, 2026

Heap exhaustion denial-of-service in the node-opcua npm library (versions ≤ 2.165.0) allows an unauthenticated remote attacker to crash the server process by repeatedly initiating OPC-UA sessions with unique nonces. The root cause is a process-global nonce cache (g_alreadyUsedNonce) that accumulates entries indefinitely with no TTL or eviction, causing unbounded heap growth measurable at approximately 1.23 MB per 5,000 nonces - achievable OOM under default Node.js heap limits. No public exploit code is identified beyond researcher-disclosed proof-of-concept details in GHSA-6wvw-vrw4-363w; exploitation requires only network access and a trivial script.

RemediationAI

Upgrade node-opcua to version 2.168.0 or later, available at https://github.com/node-opcua/node-opcua/releases/tag/v2.168.0. This release is confirmed by the project's GitHub release tag; the nonce cache fix is not explicitly named in the v2.168.0 release notes, but the advisory designates it as the patched version. If immediate upgrade is not feasible, restrict network access to the OPC-UA server port (typically TCP 4840) using firewall rules or network segmentation limited to known trusted clients - this eliminates the unauthenticated attack path entirely, with the trade-off of reduced accessibility. Connection-rate limiting at the perimeter (e.g., per-source TCP connection rate caps on port 4840) can significantly slow exploitation but cannot prevent it entirely given that nonces persist across session lifetimes. Disabling the CreateSession unauthenticated path is not a configurable option without code changes. Advisory URL: https://github.com/node-opcua/node-opcua/security/advisories/GHSA-6wvw-vrw4-363w.

Affected VersionsENISA

node-opcua < 2.166.0

Affected Packages

npm node-opcua fix: 2.166.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OPC-UA (Open Platform Communications Unified Architecture) is a machine-to-machine communication protocol used extensively in industrial automation and IoT. node-opcua (pkg:npm/node-opcua) is its Node.js implementation. To prevent replay attacks, the server maintains a process-global JavaScript object g_alreadyUsedNonce in packages/node-opcua-secure-channel/source/server/server_secure_channel_layer.ts (line 156), recording nonces seen in OpenSecureChannelRequest and CreateSession messages. CWE-770 (Allocation of Resources Without Limits or Throttling) applies because this cache has no size cap, time-to-live, or periodic eviction mechanism. The CreateSession OPC-UA path critically requires no client certificate, so the nonce accumulation vector is fully unauthenticated. Even when maxSessions=10 bounds concurrent live sessions, nonces from expired sessions remain in the cache permanently, enabling repeated connection-cycle abuse to grow the heap without bound until the Node.js process is killed by OOM.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/node-opcua/node-opcua) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Unauthenticated network path with no complexity barrier; impact is purely availability loss from heap exhaustion with no confidentiality or integrity exposure.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/node-opcua/node-opcua).

CVSS VectorVendor: https://github.com/node-opcua/node-opcua

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Summary A process-global nonce cache with no eviction policy allows an unauthenticated remote attacker to exhaust server heap memory by repeatedly opening sessions, causing the node-opcua server process to crash.

Affected versions: <= 2.165.0 Tested version: 2.165.0 CVSS Score: 7.5 (High) CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CWE: CWE-770 Allocation of Resources Without Limits or Throttling

---

Root Cause

In packages/node-opcua-secure-channel/source/server/server_secure_channel_layer.ts at line 156, g_alreadyUsedNonce is a process-global object used to track previously seen nonces for replay detection. Entries are added on every OpenSecureChannelRequest and every CreateSession request but are never removed or expired.

An unauthenticated attacker can exploit the CreateSession path (which requires no certificate) to accumulate nonce entries indefinitely. Even with maxSessions=10 limiting concurrent sessions, nonces persist after session expiry, allowing slow but reliable heap exhaustion across repeated connection cycles.

---

Measured Impact

Dynamically confirmed heap growth:

  • 5,000 unique nonces → +1.23 MB resident heap, no eviction after explicit GC
  • Projected: 10^6 nonces → ~246 MB resident heap
  • Achievable OOM on default Node.js heap limits

---

Suggested Fix

Add a TTL-based eviction policy to g_alreadyUsedNonce. Nonces should be expired after the maximum session timeout (or a reasonable fixed window, e.g. 1 hour). A Map with timestamp entries and periodic cleanup is sufficient.

---

I am following a 90-day responsible disclosure policy. I am happy to provide additional technical details under embargo. Please confirm receipt at your earliest convenience.

Reporter: Stanley Tobias Discovery date: 2026-03-23

Executive ViewAI

Why It Matters

node-opcua npm library versions 2.165.0 and earlier contain a denial-of-service vulnerability allowing unauthenticated remote attackers to crash server operations by exhausting heap memory; publicly available exploit code exists. Any organization using affected versions faces immediate service availability risk from low-effort, network-level attacks requiring only basic scripting. Absent vendor patches, organizations must immediately deploy network-level mitigations and assess whether the affected service is operationally critical.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict OPC-UA network access to trusted hosts via firewall/network segmentation; (2) Implement per-client session rate limits on initial connection attempts to constrain nonce accumulation; (3) Configure container or process heap limits below default Node.js settings to trigger controlled shutdown; (4) Deploy continuous heap usage monitoring with alerting for abnormal growth; (5) Disable OPC-UA service if operationally feasible until patch availability.

Threat Intelligence Overview

EPSS Score
0.5%
Top 56% exploitable
Prevalence
Low
niche Node.js OPC-UA library, primarily industrial and IoT deployments
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy