npm / @nestjs/websockets
@nestjs/websockets
What changed in @nestjs/websockets 11 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
2 breaking9 security1 deprecations4 new APIs and options1 tooling2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@nestjs/websockets 1213 changes
Breaking changes 2
A subclass that redeclares its constructor no longer inherits optional markers from its parent's constructor; declare the marker again or Nest throws UnknownDependenciesException. In 12.0.x, subclasses without their own constructor also lose the markers.
@nestjs/schematics v12 requires TypeScript 6 as a peer dependency; install TypeScript 6 when upgrading the CLI and schematics.
Security 3
Nest: Unbounded memory growth in the NestJS TCP microservice transport
Nest: Remote process termination via a deeply nested microservice message pattern
@nestjs/platform-fastify: Path-scoped middleware bypass via absolute-form request targets
Deprecations 1
The timeout option of built-in database, microservice, and gRPC indicators is deprecated; use .withTimeout(1500) on the returned attempt instead.
New APIs and options 4
The Node platform exposes NestNodeApplication as its application interface.
Pass a NodeAdapter instance to NestFactory.create() to run an application on the Node adapter.
handleDisconnect can now receive the reason for the disconnection.
Gateways now support request-scoped providers, with the socket injectable through the REQUEST token.
Tooling 1
Run this command if a peer dependency conflict persists, to update ts-jest and typescript-eslint within their current ranges before retrying the install.
Fixes and other changes 2
Most Express middleware works with the Node adapter because its request and response objects include Express-style helpers.
The Node adapter is recommended for new applications starting with v12.3 and is planned to become the default in v13.
@nestjs/websockets 116 changes
Security 6
Nest: Middleware Bypass on Fastify via Trailing Slash
Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)
@nestjs/core Improperly Neutralizes Special Elements in Output Used by a Downstream Component ('Injection')
Nest Fastify HEAD Request Middleware Bypass
Nest has a Fastify URL Encoding Middleware Bypass
Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)