CVE-2026-95860

node-opcua: Namespace-Level RBAC Fail-Open - Anonymous Write/Call Bypass via Unbound `DefaultRolePermissions

Published Nov 3, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

node-opcua, an OPC UA library for TypeScript and Node.js, has a flaw where the runtime incorrectly reads a missing or null DefaultRolePermissions metadata value and treats it as permissive. This allows an anonymous network client to write variables with CurrentWrite access or invoke bound methods that should be denied, effectively bypassing namespace‑level RBAC. The result is that an attacker can alter configuration data or trigger operations they should not have the right to perform, which undermines data integrity and could compromise the availability of the OPC UA server.

Affected Systems

The vulnerability applies to node‑opcua versions 2.42.0 through 2.179.9 inclusive. Any OPC UA server built with one of those releases that relies on namespace‑level default role permissions and does not set explicit per‑node RolePermissions is affected. Servers that have no declared security policy, nodes with explicit per‑node permissions, or those that correctly bind programmatic namespace metadata are not impacted. The issue was resolved in version 2.180.0.

Risk and Exploitability

The CVSS score of 9.1 signals a critical severity. EPSS is not available, but the flaw remains exploitable as an anonymous client can send write or method call requests and receives permissive enforcement. The vulnerability is not listed in the CISA KEV catalog. Attackers with network access to an OPC UA endpoint that uses an affected node-opcua version can therefore execute arbitrary writes or method calls, potentially leading to system compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade node-opcua to version 2.180.0 or later.
  • Set explicit per‑node RolePermissions for all sensitive nodes so that namespace‑level defaults are not relied upon.
  • Validate that DefaultRolePermissions metadata is not null and that namespace‑level RBAC enforcement functions correctly by running functional tests.

Generated by OpenCVE AI on November 3, 2026 at 23:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xggf-m53x-jc3f node-opcua: Namespace-Level RBAC Fail-Open - Anonymous Write/Call Bypass via Unbound `DefaultRolePermissions
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title node-opcua: Namespace-Level RBAC Fail-Open - Anonymous Write/Call Bypass via Unbound `DefaultRolePermissions
Weaknesses CWE-1188
CWE-285
CWE-636
CWE-863
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Subscriptions

No data.

Weaknesses
  • CWE-1188

    Initialization of a Resource with an Insecure Default

  • CWE-285

    Improper Authorization

  • CWE-636

    Not Failing Securely ('Failing Open')

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 7, 2026, 3:30 AM
Reserved
Sep 22, 2026, 4:39 PM
Status
Deferred
Published
Nov 3, 2026, 9:17 PM
Modified
Nov 7, 2026, 4:17 AM