unstale

npm / @nestjs/platform-ws

@nestjs/platform-ws

What changed in @nestjs/platform-ws 11 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

3 breaking9 security1 deprecations2 new APIs and options1 tooling

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@nestjs/platform-ws 1210 changes

Breaking changes 3

  • Version 12 requires TypeScript 6 as a peer dependency, so update the TypeScript dev dependency when upgrading the CLI and schematics.

    12.0.0upgrade guide

  • A subclass that redeclares its constructor no longer inherits optional markers from its parent; declare the marker again or Nest throws UnknownDependenciesException for a missing parameter.

    12.0.0upgrade guide

  • In 12.0.x, a subclass without its own constructor also drops its parent's optional markers; starting with 12.1, it keeps them as in v11.

    12.0.0upgrade guide

Security 3

  • Nest: Unbounded memory growth in the NestJS TCP microservice transport

    11.2.5, 12.0.3security advisory

  • Nest: Remote process termination via a deeply nested microservice message pattern

    11.2.4, 12.0.2security advisory

  • @nestjs/platform-fastify: Path-scoped middleware bypass via absolute-form request targets

    11.2.4, 12.0.2security advisory

Deprecations 1

  • The timeout option of the built-in database, microservice, and gRPC indicators is deprecated; use withTimeout instead.

    12.0.0upgrade guide

New APIs and options 2

  • The disconnect handler can now receive the reason for the disconnection.

    12.0.0upgrade guide

  • Gateways now support request-scoped providers, with the socket injectable through the REQUEST token.

    12.0.0upgrade guide

Tooling 1

  • Run this command to update older ts-jest or typescript-eslint releases within their current ranges if they cause a TypeScript 6 peer dependency conflict.

    12.0.0upgrade guide

@nestjs/platform-ws 116 changes

Security 6

  • Nest: Middleware Bypass on Fastify via Trailing Slash

    11.1.24security advisory

  • Nest Affected by DoS via Recursive handleData in JsonSocket (TCP Transport)

    11.1.19security advisory

  • @nestjs/core Improperly Neutralizes Special Elements in Output Used by a Downstream Component ('Injection')

    11.1.18security advisory

  • Nest Fastify HEAD Request Middleware Bypass

    11.1.16security advisory

  • Nest has a Fastify URL Encoding Middleware Bypass

    11.1.14security advisory

  • Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)

    11.1.11security advisory