What’s Vulnerable › Vulnerabilities
CVE-2026-95860: node-opcua: Namespace-Level RBAC Fail-Open - Anonymous Write/Call Bypass via Unbound `DefaultRolePermissions
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-03 · updated 2026-11-07
- Weakness: CWE-285
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.
Summary
node-opcua versions 2.42.0 through 2.180.0 fail open on namespace-level RBAC: when an operator sets a restrictive default via setDefaultRolePermissions, the runtime reads a missing or null DefaultRolePermissions value and treats it permissively. As a result, an anonymous network client can write variables with CurrentWrite access or invoke bound methods on nodes lacking explicit per-node permissions. CVSS is 9.1 (critical); it is not listed in CISA KEV. Upgrade to 2.180.0, or as a mitigation set explicit per-node RolePermissions on sensitive nodes until patched.
تعاني إصدارات node-opcua من 2.42.0 حتى 2.180.0 من خلل fail-open في التحكم بالوصول على مستوى مساحة الأسماء: فعندما يضبط المشغّل سياسة افتراضية مقيّدة عبر setDefaultRolePermissions، يقرأ مسار التنفيذ قيمة DefaultRolePermissions مفقودة أو فارغة ويعاملها بتسامح. ونتيجة لذلك يستطيع عميل شبكي مجهول كتابة المتغيرات ذات صلاحية CurrentWrite أو استدعاء الدوال المرتبطة على العقد التي لا تملك أذونات صريحة لكل عقدة. درجة الخطورة 9.1 (حرجة)، ولم تُدرَج في CISA KEV. الحل الترقية إلى الإصدار 2.180.0، وكإجراء تخفيفي يمكن ضبط RolePermissions صريحة لكل عقدة حساسة إلى حين الترقية.
Affected products
- node-opcua: from 2.42.0, < 2.180.0
References
- https://github.com/node-opcua/node-opcua/commit/0261e873900800983c622e01120f484dc6063698
- https://github.com/node-opcua/node-opcua/pull/1580
- https://github.com/node-opcua/node-opcua/releases/tag/v2.180.0
- https://github.com/node-opcua/node-opcua/security/advisories/GHSA-xggf-m53x-jc3f
- https://github.com/node-opcua/node-opcua/security/advisories/GHSA-xggf-m53x-jc3f
Get alerted when CVE-2026-95860 or the next vulnerability affects your stack