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

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-08-20T18:35:33.000Z
- Modified: 2026-09-30T19:38:27.293Z
- Also known as: GHSA-mq36-523m-x7vv
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- node-opcua node-opcua: < 2.166.0
- node-opcua (npm): up to 2.165.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L`

## References

- <https://github.com/node-opcua/node-opcua/security/advisories/GHSA-mq36-523m-x7vv> (web)
- <https://github.com/node-opcua/node-opcua/commit/c6b05738682f5c8d70b1ea275c881f01a1cd9787>
- <https://github.com/node-opcua/node-opcua/releases/tag/v2.166.0>
- <https://github.com/node-opcua/node-opcua> (package)

## Sources

- CVE List: [CVE-2026-54155](https://www.cve.org/CVERecord?id=CVE-2026-54155), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-mq36-523m-x7vv](https://github.com/advisories/GHSA-mq36-523m-x7vv), CC-BY-4.0, modified 2026-08-20
- NVD: [CVE-2026-54155](https://nvd.nist.gov/vuln/detail/CVE-2026-54155), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-54155 · Whole record: https://cve.day/CVE-2026-54155.json · Rebuilt by cve.day 2026-11-25T22:59:38.306Z
