unstale

npm / @nestjs/platform-express

@nestjs/platform-express

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

4 breaking9 security5 new APIs and options1 behavior and defaults1 tooling1 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@nestjs/platform-express 1215 changes

Breaking changes 4

  • The Express adapter drains in-flight requests during shutdown.

    12.0.0upgrade guide

  • HTTP adapter error mapping has been reworked across the core, Express, and Fastify adapters; verify dependent behavior with tests.

    12.0.0upgrade guide

  • Version 12 requires TypeScript 6 as a peer dependency, so update TypeScript when installing the latest schematics.

    12.0.0upgrade guide

  • A subclass that redeclares its constructor no longer inherits optional markers; missing markers can cause Nest to throw UnknownDependenciesException instead of resolving the parameter as undefined.

    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

New APIs and options 5

  • The Node adapter is provided by this package, which applications install to run Nest directly on node:http.

    12.3.0docs

  • Use this platform-specific application interface as the type argument to NestFactory.create().

    12.3.0docs

  • Pass a NodeAdapter instance to NestFactory.create() to run an application on the Node adapter.

    12.3.0docs

  • NestApplicationOptions adds opt-in duplicate-route and shadowing policies, allowing Express applications to warn about or reject route conflicts.

    12.0.0upgrade guide

  • NestApplicationOptions adds an opt-in route resolution strategy; setting it to specificity addresses order-sensitive route matching on Express.

    12.0.0upgrade guide

Behavior and default changes 1

  • They include Express-style helpers, so most Express middleware works with the Node adapter.

    12.3.0docs

Tooling 1

  • When npm reports a peer dependency conflict, run this command to update ts-jest and typescript-eslint within their current ranges before retrying the install.

    12.0.0upgrade guide

Fixes and other changes 1

  • Chain withTimeout on the returned attempt to set a timeout for built-in database, microservice, and gRPC indicators.

    12.0.0upgrade guide

@nestjs/platform-express 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