Live threats

All CVEs / node-opcua

CVE-2026-95860node-opcua

Access control bypass in node-opcua due to unenforced role permissions

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Nov 3, 2026
Updated
Nov 7, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-285, CWE-636, CWE-863, CWE-1188
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

node-opcua versions 2.42.0 through 2.179.x fail to enforce namespace-level role permissions configured via setDefaultRolePermissions for nodes without explicit per-node permissions. An unauthenticated network client can write variables or call methods if an operator configured restrictive namespace defaults. The issue is fixed in version 2.180.0.

AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.

Show the original NVD text

node-opcua is an OPC UA implementation for TypeScript and Node.js. From 2.42.0 until 2.180.0, namespace-level access control configured through setDefaultRolePermissions is not honored by the runtime enforcement path for nodes without explicit per-node RolePermissions. SessionContext.getApplicableRolePermissions reads a missing or null DefaultRolePermissions metadata value instead of the configured namespace field, and the null result is treated permissively. An anonymous network client can consequently write variables with CurrentWrite access or call bound methods when an operator configured a restrictive namespace default and relied on inheritance. Servers with no declared policy, nodes with explicit per-node permissions, and correctly bound programmatic namespace metadata are outside the authorization-bypass case. This issue is fixed in version 2.180.0.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 2.180.0

Update node-opcua, node-opcua-address-space, and node-opcua-server to version 2.180.0 or later.

Vendor advisory · github.com ↗

AI-generated from public data; not reviewed.

  1. Apply the vendor's security update for node-opcua.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm node-opcua ≥ 2.42.0 < 2.180.0 2.180.0 npm install node-opcua@2.180.0
npm node-opcua-address-space ≥ 2.42.0 < 2.180.0 2.180.0 npm install node-opcua-address-space@2.180.0
npm node-opcua-server ≥ 2.42.0 < 2.180.0 2.180.0 npm install node-opcua-server@2.180.0

Per OSV / GitHub Advisories (GHSA-xggf-m53x-jc3f). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.