Intel

AIKIDO-2026-92779

@nestjs/platform-socket.io is vulnerable to Uncaught Exception

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 16, 2026
October 16, 2026

59

CVE Score

Medium

Uncaught Exception

Are you affected? Scan for Free

TL;DR

IoAdapter.bindMessageHandlers and WsAdapter.bindMessageHandlers send gateway handler responses through socket.emit(), ack(), or JSON.stringify() and client.send() inside an RxJS subscriber, with nothing to catch a throw. A client Socket.IO or WebSocket message that the handler echoes can be nested deeply enough that parsing succeeds while the encoder or JSON.stringify throws. RxJS then re-raises that exception asynchronously and can crash the Node process. The fix catches those serialization throws and logs them, so the reply is dropped and the process keeps running.

How do I fix this?

Upgrade the @nestjs/platform-socket.io and/or the @nestjs/platform-ws library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your gateway handlers can produce responses derived from client-supplied data over the WebSocket or Socket.IO adapter.

Versions

6.0.0 - 11.2.6

Fixed in 11.2.7

12.0.0 - 12.1.1

Fixed in 12.1.2

Background info

@nestjs/platform-socket.io is vulnerable to Uncaught Exception in versions 6.0.0 - 11.2.6 and 12.0.0 - 12.1.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea