Critical · 9.1 Node.js & npm GHSA-xggf-m53x-jc3f CVE-2026-95860
node-opcua: Authorization Bypass Allows Anonymous Writes and Method Calls on OPC UA Servers
A flaw in node-opcua causes namespace-level access control to fail open, allowing anonymous network clients to write variables and call bound methods on nodes that rely on inherited namespace permissions. Fixed in version 2.180.0.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been identified in node-opcua, an OPC UA implementation for TypeScript and Node.js, that allows anonymous network clients to bypass access control configured at the namespace level. The issue affects servers that rely on inherited namespace-wide permissions rather than explicit per-node configuration, and is fixed in version 2.180.0.
What happened
node-opcua contains a flaw in its runtime authorization enforcement path. When an operator configures namespace-level access control using setDefaultRolePermissions, nodes that do not have explicit per-node RolePermissions are supposed to inherit the namespace default. Instead, the enforcement path (SessionContext.getApplicableRolePermissions) reads a missing or null DefaultRolePermissions metadata value rather than the configured namespace field, and treats the null result permissively. As a result, an anonymous network client can write variables that expose CurrentWrite access or call bound methods on affected nodes, even though the operator intended a restrictive policy to apply through inheritance.
Who is affected
Servers are affected if they configure namespace-level default role permissions via setDefaultRolePermissions and rely on nodes inheriting that policy instead of setting explicit per-node permissions. According to the advisory, servers with no declared access control policy at all, nodes that have explicit per-node RolePermissions set, and nodes with correctly bound programmatic namespace metadata are not affected by this specific bypass.
Affected versions
The vulnerability affects node-opcua, node-opcua-address-space, and node-opcua-server from version 2.42.0 up to (not including) version 2.180.0.
Fixes and mitigation
The issue is fixed in version 2.180.0 of node-opcua, node-opcua-address-space, and node-opcua-server. Operators should upgrade affected packages to version 2.180.0 or later.
Recommended action
Upgrade node-opcua, node-opcua-address-space, and node-opcua-server to version 2.180.0 or later. Until the upgrade is applied, operators who rely on namespace-level default role permissions should consider setting explicit per-node RolePermissions on sensitive variables and methods as a compensating control, since nodes with explicit per-node permissions are not affected by this bypass.
PatchBriefing score
9.1 / 10 · Critical
Official CVSS: 9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS 0.0052 (37 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- node-opcua >= 2.42.0, < 2.180.0
- vulnerable
- node-opcua ≥ 2.42.0 < 2.180.0
- vulnerable
- ≥ 2.180.0
- patched
- node-opcua-address-space >= 2.42.0, < 2.180.0
- vulnerable
- node-opcua-address-space ≥ 2.42.0 < 2.180.0
- vulnerable
- ≥ 2.180.0
- patched
- node-opcua-server >= 2.42.0, < 2.180.0
- vulnerable
- node-opcua-server ≥ 2.42.0 < 2.180.0
- vulnerable
- ≥ 2.180.0
- patched
Reported fixes
The issue is fixed in version 2.180.0 of node-opcua, node-opcua-address-space, and node-opcua-server. Operators should upgrade affected packages to version 2.180.0 or later.
How this was built
4 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
CVE.org database
-
GitHub Advisory Database database
-
OSV.dev database
Revision history
- Published
- Generated
- Published
- Early Warning