Critical

node-opcua bypasses namespace role permissions on unprotected nodes

An anonymous network client can write variables with CurrentWrite access or call bound methods on the OPC UA server. This happens even though the operator configured namespace-level access control with setDefaultRolePermissions, because the runtime reads a null permissions value instead of the configured one and treats it permissively.

Product
node-opcua
Systems
macOSWindowsLinux
CVSS
9.1
Weakness
CWE-285CWE-636CWE-863
Source
Get the fix in Telegram

Affected software and versions

PackageEcosystemAffectedFixed in
node-opcuaothernot statednot verified

A fixed version is shown only when it is verified against a vendor or advisory source.

Who should check

Anyone running a node-opcua server (TypeScript/Node.js) on macOS, Windows or Linux that relies on setDefaultRolePermissions for namespace access control, on nodes without explicit per-node RolePermissions.

Expected outcome after remediation

The agent reports which node-opcua version is installed and whether it is affected, then confirms the package was updated and the server rebuilt and restarted.

Get the fix

FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 795 and your operating system.