Skip to content

12.6.12

Choose a tag to compare

@kaihaase kaihaase released this 14 Nov 21:03
· 9 commits to release/12.6.x since this release

Maintenance release of the 12.6 line (npm i @lenne.tech/nest-server@latest-12.6): the 12.9.3 and 12.9.4 changes, and two security fixes in dependencies. Every project on 12.6.x should update now and add one ws override.

Update

pnpm add @lenne.tech/nest-server@12.6.12
pnpm run update   # nest-server-starter based projects: raises @nestjs/* to 12.5.0

Then put this entry into your pnpm-workspace.yaml — replace an existing ws 8.x entry, do not only raise its target — and run pnpm install:

overrides:
  'ws@>=8.0.0 <8.23.0': '8.23.0'

pnpm why ws must list a single ws@8.23.0. Boot the application once: NestJS 12.5.0 refuses at startup what 12.3 silently ignored (a guard, interceptor or pipe that cannot run, an invalid forRoutes() / exclude() entry).

Security

Not yet in GitHub's global advisory database, so pnpm audit stays green on an affected project.

  • ws — GHSA-37g9-w4hg-h9qr (high): memory-exhaustion DoS through unbounded pong replies, without authentication, via the GraphQL WebSocket. @nestjs/graphql 14.1.2 pins ws 8.22.0 exactly; only an override in your project lifts it.
  • NestJS 12.5.0 (from 12.3.2) closes GHSA-c8fr-c7pf-58pf and GHSA-jgpx-8x6j-fcpf (high, process crashes).

New and fixed

  • Byte ranges from every file store. GET /files/id/:id and GET /files/:filename answer Range with 206 / 416, so videos play in Safari. getFileStream(id, { range }), resolveDownloadRange() and setDownloadRangeHeaders() for a project's own media route.
  • No ERROR File download failed: aborted for S3 downloads the client aborts (a video player does that on every seek).

Migration guide: migration-guides/12.6.11-to-12.6.12.md