@lenne.tech/nest-server 12.9.3 → 12.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,8 +173,13 @@ load-bearing (it has since grown back to as many as 20, mostly as new advisories
173
173
  2026-10-24 (nest-server 12.0.0) two fresh resolves showed that 16 of the remaining 18 changed nothing,
174
174
  and they were removed, leaving `@graphql-tools/utils` and `multer`, both on an upstream EXACT pin with
175
175
  an open advisory. Those two left on 2026-10-29 (nest-server 12.1.0), once `@nestjs/graphql` 14.1.0 and
176
- `@nestjs/platform-express` 12.3.2 moved their pins past the fixes: **the set is empty** (`overrides: {}`,
177
- written explicitly so `check:overrides` reads it as a decision). An override is only necessary if removing it lets the package resolve
176
+ `@nestjs/platform-express` 12.3.2 moved their pins past the fixes: the set was empty (`overrides: {}`,
177
+ written explicitly so `check:overrides` reads it as a decision) from 12.1.0 to 12.9.3. Since 12.9.4 it holds one
178
+ entry, `ws`: GHSA-37g9-w4hg-h9qr (high, pre-auth memory-exhaustion DoS, patched 8.23.0) covers the 8.22.1 that
179
+ `@nestjs/graphql` 14.2.1 exact-pins, and the GraphQL WebSocket server runs on that copy. The advisory was published
180
+ by the ws maintainers on 2026-11-12 and was not yet in GitHub's global database when the entry was added, so
181
+ `pnpm audit` did not report it — read the advisories of a package's own repository when a release announces a
182
+ security fix. Its target moves in lockstep with the declared `ws` dependency (`docs/security-overrides.md`). An override is only necessary if removing it lets the package resolve
178
183
  back INTO its vulnerable range (verify with a with/without lockfile diff; `pnpm audit` is the arbiter).
179
184
  "Cheap insurance against a parent re-pinning downwards" is not a reason to keep one: `pnpm audit` and
180
185
  `check:overrides` run on every `check` and report such a regression the day it happens. Each surviving entry carries its CVE rationale as a comment. Remove an entry once its parent dependency ships a fixed version.
@@ -412,7 +412,7 @@ pnpm run check:mutations -- --id=<id> # one mutation
412
412
  pnpm run check:mutations -- --list # the registry, without running anything
413
413
  pnpm run check:mutations -- --allow-dirty # when the fix and its evidence share a working tree
414
414
  pnpm run check:mutations -- --jobs=4 # N mutations at a time (default: 2, or 4 on >=12 cores)
415
- pnpm run check:mutations -- --no-infra # only the 444 that need no MongoDB
415
+ pnpm run check:mutations -- --no-infra # only the 445 that need no MongoDB
416
416
  pnpm run check:mutations -- --since=<ref> # only mutations touching files changed since <ref>
417
417
  pnpm run check:mutations -- --shard=2/4 # this job's quarter of the selection (CI splits the full run)
418
418
  ```
@@ -432,7 +432,7 @@ when the registry, a vitest config or a setup file changed, since those can move
432
432
  commit, and in CI alongside the publish without blocking it. The price of caching is a cache that
433
433
  has to model each spec's full dependency closure correctly, and getting that wrong produces a stale
434
434
  PASS for a test that has since gone vacuous — exactly what the gate is there to prevent. Bad trade
435
- at 686 mutations.
435
+ at 688 mutations.
436
436
 
437
437
  **Decided 2026-10-03 (repo owner): keep the full run.** Measured at 128 mutations, the CI job for
438
438
  11.41.6 took **14 minutes**. The trigger to revisit is that wall time, not the mutation count —
@@ -503,9 +503,9 @@ exactly the environment where the answer matters.
503
503
 
504
504
  ### The cost is vitest's cold start, not the tests
505
505
 
506
- Worth knowing before optimising the wrong thing: the specs behind all 242 e2e mutations add up to
506
+ Worth knowing before optimising the wrong thing: the specs behind all 243 e2e mutations add up to
507
507
  **~40 seconds**. The step takes ~740s. The remaining ~700s is paying vitest's startup — process
508
- spawn, transform, module graph, mongod connect, DB create and drop — once per mutation, 686 times.
508
+ spawn, transform, module graph, mongod connect, DB create and drop — once per mutation, 688 times.
509
509
  That work is largely single-threaded I/O and barely scales with cores: the full registry measures
510
510
  **744s on a 12-core laptop and 777s on a 4-vCPU CI runner**.
511
511
 
package/FRAMEWORK-API.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lenne.tech/nest-server — Framework API Reference
2
2
 
3
- > Auto-generated from source code as of 2026-11-11 (v12.9.3)
3
+ > Auto-generated from source code as of 2026-11-13 (v12.9.4)
4
4
  > File: `FRAMEWORK-API.md` — compact, machine-readable API surface for Claude Code
5
5
 
6
6
  ## CoreModule.forRoot()
@@ -131,6 +131,14 @@ export function pipeFileToResponse(stream, res) {
131
131
  .json({ error: 'Service Unavailable', message: 'File storage is busy, please retry', statusCode: 503 });
132
132
  return;
133
133
  }
134
+ if (state.responseClosed || state.clientGoneSignal || isResponseGone(res)) {
135
+ state.clientGoneSignal ||= 'store error after the client left';
136
+ fileStreamLogger.debug(`File download ended after the client left: ${err.message}`);
137
+ if (!res.destroyed) {
138
+ res.destroy();
139
+ }
140
+ return;
141
+ }
134
142
  fileStreamLogger.error(`File download failed: ${err.message}`, err.stack);
135
143
  if (res.headersSent) {
136
144
  res.destroy();
@@ -1 +1 @@
1
- {"version":3,"file":"core-file.controller.js","sourceRoot":"","sources":["../../../../src/core/modules/file/core-file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,GAAG,EACH,aAAa,EACb,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,GAAG,EACH,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,4CAA4C,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAkB,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAChH,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,gBAAgB,GAAG,IAAI,MAAM,C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MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC9F,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACpE,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAChC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAcS,UAAU,CAAC,GAAa;QAChC,GAAG,CAAC,MAAM,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AApQO;IAFL,GAAG,CAAC,QAAQ,CAAC;IACb,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;IAEnB,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;IACX,WAAA,GAAG,EAAE,CAAA;IACL,WAAA,WAAW,EAAE,CAAA;;;;qDAiEf;AAcK;IAFL,GAAG,CAAC,WAAW,CAAC;IAChB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;IAEnB,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;IACjB,WAAA,GAAG,EAAE,CAAA;IACL,WAAA,WAAW,EAAE,CAAA;;;;iDAoCf;AAtLmB,kBAAkB;IAHvC,UAAU,CAAC,OAAO,CAAC;IACnB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;IACrB,eAAe,EAAE;qCAK6B,eAAe;GAJxC,kBAAkB,CAiUvC"}
1
+ {"version":3,"file":"core-file.controller.js","sourceRoot":"","sources":["../../../../src/core/modules/file/core-file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,GAAG,EACH,aAAa,EACb,UAAU,EACV,MAA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AC;QACf,CAAC;QACD,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAChC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAcS,UAAU,CAAC,GAAa;QAChC,GAAG,CAAC,MAAM,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AApQO;IAFL,GAAG,CAAC,QAAQ,CAAC;IACb,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;IAEnB,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;IACX,WAAA,GAAG,EAAE,CAAA;IACL,WAAA,WAAW,EAAE,CAAA;;;;qDAiEf;AAcK;IAFL,GAAG,CAAC,WAAW,CAAC;IAChB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;IAEnB,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;IACjB,WAAA,GAAG,EAAE,CAAA;IACL,WAAA,WAAW,EAAE,CAAA;;;;iDAoCf;AAtLmB,kBAAkB;IAHvC,UAAU,CAAC,OAAO,CAAC;IACnB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;IACrB,eAAe,EAAE;qCAK6B,eAAe;GAJxC,kBAAkB,CAiUvC"}
@@ -21,6 +21,17 @@ used to **exact-pin**, to a vulnerable version:
21
21
  | `@graphql-tools/utils` | [GHSA-7mx3-vvmw-hjmv](https://github.com/advisories/GHSA-7mx3-vvmw-hjmv) — high: prototype pollution in `mergeDeep`, which runs while the GraphQL schema is assembled. Covers `<=12.0.0`, patched `>=12.0.1` (added 2026-10-06); [GHSA-c4qx-w738-7hr3](https://github.com/advisories/GHSA-c4qx-w738-7hr3) — high: prototype pollution in `mergeIncrementalResult` via non-primitive path segments. Covers `>=10.10.1 <=12.0.1`, patched `>=12.0.2` (published 2026-10-22) | `@nestjs/graphql` declares utils as an **exact pin**: 13.4.5 — the newest 13.x — `12.0.0`, and 14.0.3, the version this framework declares since 12.0.0, `12.0.1`. 12.0.1 clears the first advisory and is covered by the second, so **this entry is load-bearing on 13.x and on 14.0.x**. 14.1.0, the version this framework declares since 12.1.0, pins `12.1.0`, which clears both: there the entry is inert. `@apollo/server` reaches utils too, through `@graphql-tools/schema` / `merge` — and in a lockfile that still holds schema 10.0.x (resolved before 2026-08-12), as **utils 11.x**: vulnerable too, with no 11.x fix, and outside the override key. Lift it with `pnpm update --depth Infinity @graphql-tools/schema @graphql-tools/merge`; the current releases request utils `^12.1.0`, which needs Node >=22.15 — the framework's own floor since 11.42.10 |
22
22
  | `multer` | [GHSA-wc9g-mqfw-jrwm](https://github.com/advisories/GHSA-wc9g-mqfw-jrwm), [GHSA-535w-7cp7-47q4](https://github.com/advisories/GHSA-535w-7cp7-47q4), [GHSA-qfvm-cv95-jqjf](https://github.com/advisories/GHSA-qfvm-cv95-jqjf) — high: DoS via crafted multipart input; [GHSA-qvfw-j98x-7q72](https://github.com/advisories/GHSA-qvfw-j98x-7q72) — low: file size limit bypass. Patched `>=2.3.0`; [GHSA-q7qp-rjg7-q26m](https://github.com/advisories/GHSA-q7qp-rjg7-q26m) — high: DoS via a pending asynchronous `fileFilter` after request teardown. Covers `>=2.0.0 <2.5.0`, patched `>=2.5.0` (published 2026-10-22) | `@nestjs/platform-express` declares multer as an **exact pin**: up to 11.2.5 `2.2.0`, 11.2.6 / 11.2.7 `2.4.0`, and so does 12.2.0, the version this framework declared in 12.0.x. 2.4.0 is covered by GHSA-q7qp-rjg7-q26m, so **this entry is load-bearing up to @nestjs/platform-express 12.2.0**. 12.3.2, the version this framework declares since 12.1.0, pins `2.5.0`: there the entry is inert. A direct `multer` dependency does not move the pin: you get both copies, and FileInterceptor uses the vulnerable one |
23
23
 
24
+ **Status since 12.9.4** (verified 2026-11-14): **`ws` needs an entry again.**
25
+ [GHSA-37g9-w4hg-h9qr](https://github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qr) — high: a client
26
+ floods ping frames without reading the replies, the server buffers the automatic pongs, and the process runs out of
27
+ memory. No authentication is needed, so every application with GraphQL subscriptions over WebSocket is reachable.
28
+ Patched in `ws` 8.23.0 (published 2026-11-12). `@nestjs/graphql` 14.2.1, the newest release and the version this
29
+ framework declares since 12.9.4, exact-pins `8.22.1`, and the GraphQL WebSocket server runs on that copy, so the `ws`
30
+ dependency nest-server declares (`8.23.0` since 12.9.4) does not lift it. Add the `ws` entry from "The fix" below,
31
+ keep it in lockstep with the declared version, and remove it once `@nestjs/graphql` pins `ws` >= 8.23.0. Until GitHub's
32
+ global advisory database lists the advisory, `pnpm audit` reports nothing for the vulnerable version; do not read a
33
+ green audit as "not affected".
34
+
24
35
  **Status since 12.1.0** (verified 2026-10-29): with the `@nestjs/*` versions this framework declares, **no
25
36
  entry is needed**. `@nestjs/platform-express` 12.3.2 pins `multer` 2.5.0 and `@nestjs/graphql` 14.1.0 pins
26
37
  `@graphql-tools/utils` 12.1.0, both past their advisories, and nest-server's own `overrides:` block is empty:
@@ -62,9 +73,22 @@ entries. None of them is optional in practice.
62
73
  ## The fix
63
74
 
64
75
  Add this to your project's `pnpm-workspace.yaml` (pnpm 11+; in pnpm 10 and earlier it lives under
65
- `pnpm.overrides` in `package.json`). On nest-server **12.0.x** these two entries are all it takes — a fresh
66
- resolve of nest-server 12.0.0's own tree with and without every other former entry audits identically. On
67
- **12.1.x** neither is needed once your `@nestjs/*` pins match the framework's (see "Status since 12.1.0"):
76
+ `pnpm.overrides` in `package.json`).
77
+
78
+ **On nest-server 12.9.4 and later** this one entry is needed (see "Status since 12.9.4"):
79
+
80
+ ```yaml
81
+ overrides:
82
+ # GHSA-37g9-w4hg-h9qr (high): memory-exhaustion DoS through unbounded automatic pong replies, before any
83
+ # authentication. Patched in 8.23.0. @nestjs/graphql 14.2.1 exact-pins ws 8.22.1, and the GraphQL WebSocket
84
+ # server runs on that copy. Keep the target in LOCKSTEP with the ws version @lenne.tech/nest-server declares
85
+ # (8.23.0 since 12.9.4). Remove once @nestjs/graphql pins ws >= 8.23.0.
86
+ 'ws@>=8.0.0 <8.23.0': '8.23.0'
87
+ ```
88
+
89
+ On nest-server **12.0.x** the two entries below are all it takes — a fresh resolve of nest-server 12.0.0's own tree
90
+ with and without every other former entry audits identically. On **12.1.x** neither is needed once your `@nestjs/*`
91
+ pins match the framework's (see "Status since 12.1.0"):
68
92
 
69
93
  ```yaml
70
94
  overrides:
@@ -109,7 +133,8 @@ way, and remove the entries once your consumers move to minimatch 11 / glob 14.
109
133
  `@nestjs/graphql` 13 and `@nestjs/swagger` 11 exact-pin vulnerable versions of these two; their 12.x
110
134
  successors pin patched ones (`ws` 8.22.0, `js-yaml` 5.5.0). On nest-server 12 remove both entries — an
111
135
  inert `ws` entry is not harmless there: pnpm rewrites `graphql-ws`'s `ws` peer range to the override
112
- target, so a target below 8.22.0 makes `pnpm peers check` report `unmet peer ws`.
136
+ target, so a target below 8.22.0 makes `pnpm peers check` report `unmet peer ws`. Since 12.9.4 nest-server 12
137
+ needs its own `ws` entry again, for GHSA-37g9-w4hg-h9qr: replace the 11.x entry with the one from "The fix".
113
138
 
114
139
  ```yaml
115
140
  # nest-server 11.x only (@nestjs/graphql 13 exact-pins ws; GHSA-96hv-2xvq-fx4p, patched >=8.21.0)
@@ -134,8 +159,8 @@ tree to `2.0.11` even though nothing needed help any more.
134
159
 
135
160
  ### The `ws` target must stay in lockstep with the declared `ws` version
136
161
 
137
- This applies while a project carries a `ws` entry at all, i.e. on nest-server 11.x. `8.22.0` (since 12.0.0;
138
- `8.21.3` before) is not an arbitrary "latest patch" — it is the version
162
+ This applies while a project carries a `ws` entry at all: on nest-server 11.x, and on 12.9.4 and later. `8.23.0`
163
+ (since 12.9.4; `8.22.0` since 12.0.0, `8.21.3` before) is not an arbitrary "latest patch" — it is the version
139
164
  `@lenne.tech/nest-server` declares as an ordinary **dependency**, so it is already in your tree whether
140
165
  or not you list `ws` yourself. The override target has to equal it.
141
166
 
@@ -147,8 +172,15 @@ when you read a manifest. The target was raised `8.21.1` → `8.21.3` on 2026-08
147
172
  reason, and to `8.22.0` with nest-server 12.0.0.
148
173
 
149
174
  **Rule:** whenever the `ws` version declared by `@lenne.tech/nest-server` (or by your own
150
- `package.json`, if you list it) moves, move this override target with it in the same commit. The
151
- same applies to any other override whose package also appears as a declared dependency.
175
+ `package.json`, if you list it) moves, move this override's target **and the upper bound of its key** with it in the
176
+ same commit. The same applies to any other override whose package also appears as a declared dependency.
177
+
178
+ The key matters as much as the target. pnpm matches a key against the REQUESTED range, and `@nestjs/graphql` requests
179
+ an exact version. A starter-derived project carries `'ws@>=8.0.0 <8.22.1': 8.22.1` (since 12.8.4): raising only its
180
+ target to `8.23.0` leaves `@nestjs/graphql`'s request for exactly `8.22.1` outside the key, the tree keeps `ws@8.22.1`
181
+ next to `8.23.0`, and the GraphQL WebSocket server stays on the vulnerable copy — while `pnpm audit` is green, because
182
+ GHSA-37g9-w4hg-h9qr is not in GitHub's global database yet. Replace that entry with
183
+ `'ws@>=8.0.0 <8.23.0': '8.23.0'` and check that `pnpm why ws` lists a single `ws@8.23.0`.
152
184
 
153
185
  Then:
154
186
 
@@ -160,8 +192,10 @@ pnpm test # nothing should regress
160
192
 
161
193
  Commit `package.json`/`pnpm-workspace.yaml` **and** `pnpm-lock.yaml` together.
162
194
 
163
- > Projects generated from `nest-server-starter` or `lt-monorepo` already carry all three entries.
164
- > This page is for projects that predate that, or that were assembled by hand.
195
+ > Projects generated from `nest-server-starter` or `lt-monorepo` carry the starter's overrides as they were when the
196
+ > project was created. Since 12.9.4 that is not enough for `ws`: their entry `'ws@>=8.0.0 <8.22.1': 8.22.1` misses the
197
+ > exact `8.22.1` that `@nestjs/graphql` 14.2.1 requests and must be **replaced** by the entry from "The fix" (see
198
+ > the rule above).
165
199
 
166
200
  ## Rules for writing your own overrides
167
201
 
@@ -0,0 +1,135 @@
1
+ # Migration Guide: 12.9.3 → 12.9.4
2
+
3
+ ## Overview
4
+
5
+ | Category | Details |
6
+ |---|---|
7
+ | **Breaking Changes** | None in nest-server. NestJS 12.5.0, which `pnpm run update` installs, adds startup errors for configurations it used to ignore (§2) |
8
+ | **New Features** | None |
9
+ | **Bugfixes** | Every S3 download the client aborted mid-transfer logged `ERROR File download failed: aborted` with a stack trace (§1) |
10
+ | **Security** | NestJS 12.5.0 closes three high advisories of the Express stack (process crashes; §2). `ws` GHSA-37g9-w4hg-h9qr (high, unauthenticated memory-exhaustion DoS through the GraphQL WebSocket) — add one override to your `pnpm-workspace.yaml` (§3) |
11
+ | **Migration Effort** | `pnpm run update`, one override (§3), a test run against NestJS 12.5.0 (§2) |
12
+
13
+ ## Quick Migration
14
+
15
+ ```bash
16
+ pnpm add @lenne.tech/nest-server@12.9.4
17
+ pnpm run update # nest-server-starter based projects
18
+ # add the ws override from §3 to pnpm-workspace.yaml, then: pnpm install
19
+ pnpm run build
20
+ pnpm test
21
+ ```
22
+
23
+ **Vendor mode**: run `/lt-dev:backend:update-nest-server-core` as usual.
24
+
25
+ ## 1. No ERROR for downloads the client aborts
26
+
27
+ A client that leaves while an S3 download is still streaming is normal traffic, and with 12.9.3 a frequent one: a video
28
+ player aborts the running range on every seek. Each of them logged
29
+
30
+ ```
31
+ ERROR [CoreFileController] File download failed: aborted
32
+ Error: aborted
33
+ at Socket.socketCloseListener (node:_http_client:…)
34
+ ```
35
+
36
+ through the framework's download routes and every project route that delivers with `pipeFileToResponse()` — under the
37
+ load in which the `S3 socket pool exhausted:` line has to stand out.
38
+
39
+ The cause is an order of listeners. `downloadAbortSignal(res)` is created before the rights check (the client may leave
40
+ while it runs), so its listeners come first. On the event that reports the client gone it aborts the S3 request, and the
41
+ SDK fails the body with `aborted` inside that same dispatch, before `pipeFileToResponse()` has seen the client leave.
42
+ It shows through a Nest route, whose GET request is not read to its end, so the request's `close` reports the abort.
43
+
44
+ Since 12.9.4 `pipeFileToResponse()` reads a stream error while the client is gone (`isResponseGone(res)`, or one of its
45
+ own client-gone signals) as the end of an aborted download: nothing is sent, one debug line is logged, the socket was
46
+ already released. A store error while the client is still connected is an ERROR as before.
47
+
48
+ Nothing to change in a project. A route that delivers with its own code instead of `pipeFileToResponse()` should switch
49
+ to it (see the 12.8.9 guide).
50
+
51
+ ## 2. Dependencies: NestJS 12.5.0
52
+
53
+ 12.9.4 declares NestJS 12.5.0. `pnpm run update` raises these pins of a nest-server-starter based project:
54
+
55
+ | Package | From | To |
56
+ |---|---|---|
57
+ | `@nestjs/common`, `@nestjs/core`, `@nestjs/platform-express` | 12.4.2 | 12.5.0 |
58
+ | `@nestjs/graphql` | 14.2.0 | 14.2.1 |
59
+ | `@nestjs/schedule` | 12.0.3 | 12.0.4 |
60
+ | `@nestjs/swagger` | 12.1.1 | 12.1.2 |
61
+ | `@nestjs/cli` (dev) | 12.0.12 | 12.0.13 |
62
+ | `@nestjs/testing` (dev) | 12.4.2 | 12.5.0 |
63
+ | `oxlint-tsgolint` (dev) | 7.0.2006 | 7.0.2007 |
64
+ | `vite` (dev) | 8.3.7 | 8.3.8 |
65
+
66
+ Update `@nestjs/core` and the platform package together: the adapter passes new route-matching options to the core.
67
+
68
+ **Why now: NestJS 12.5.0 is a security release.** Its advisories of 2026-11-12 include three high ones for an
69
+ application on Express, all fixed only in 12.5.0:
70
+
71
+ | Advisory | Package | What |
72
+ |---|---|---|
73
+ | [GHSA-q223-fc7f-xg75](https://github.com/nestjs/nest/security/advisories/GHSA-q223-fc7f-xg75) | `@nestjs/core` 12.4.x | Process crash when a handler returns a stream that fails before it is read |
74
+ | [GHSA-c8fr-c7pf-58pf](https://github.com/nestjs/nest/security/advisories/GHSA-c8fr-c7pf-58pf) | `@nestjs/platform-express` < 12.5.0 | Process crash via a multipart request with many fields |
75
+ | [GHSA-jgpx-8x6j-fcpf](https://github.com/nestjs/nest/security/advisories/GHSA-jgpx-8x6j-fcpf) | `@nestjs/common` < 12.5.0 | Process crash via many files validated at once by `ParseFilePipe` |
76
+
77
+ They were not in GitHub's global advisory database on 2026-11-14, so `pnpm audit` does not report them yet. A project
78
+ that pins `@nestjs/*` itself below 12.5.0 stays affected whatever nest-server version it runs.
79
+
80
+ NestJS 12.5.0 changes behaviour that a REST / GraphQL application on Express can meet (full list in its
81
+ [release notes](https://github.com/nestjs/nest/releases/tag/v12.5.0)):
82
+
83
+ - **New startup errors.** A guard, interceptor or pipe that cannot run (an abstract class as token, a class given as
84
+ the `useValue` of `APP_GUARD`) and an invalid `forRoutes()` / `exclude()` entry now stop the application at startup.
85
+ They did nothing before, so the fix is to correct or remove the entry — boot the application once after the update.
86
+ - Middleware passed to `forRoutes()` is now also mounted on routes excluded from the global prefix.
87
+ - Multipart requests are capped at 1000 parts by default (`limits.parts` raises it), which also caps a `maxCount` above 1000.
88
+ - A `SyntaxError` / `URIError` without a status thrown by an `app.use()` middleware answers 500 instead of 400.
89
+ - An `@Optional()` dependency that exists but fails to build now fails its consumer instead of arriving as `undefined`.
90
+ - A limit given as `NaN` (`Number(process.env.UNSET)`) now gets its default instead of switching the limit off.
91
+
92
+ `@apollo/server` stays at 5.5.1. 5.5.2 caps `@graphql-tools/utils` below 12.0.2 for Node 20 installs and thereby brings
93
+ back GHSA-c4qx-w738-7hr3 (high); this framework requires Node >= 22.15, so 5.5.2 adds nothing. Do not raise it in a
94
+ project either.
95
+
96
+ **better-auth** is your project's own pin; nest-server 12.9.4 is tested with 1.7.23 and its peer range is unchanged.
97
+ If you raise it past 1.7.21, two changes from better-auth apply: a throw from `sendVerificationEmail` no longer rejects
98
+ a sign-up (it is logged, the sign-up succeeds — the user stays unverified and can request the mail again), and the
99
+ MongoDB adapter builds indexes for fields marked `unique` / `index` at startup — one that fails (duplicate e-mail
100
+ addresses, a conflicting index) has to be fixed before the application starts cleanly.
101
+
102
+ ## 3. Security: one override for `ws`
103
+
104
+ [GHSA-37g9-w4hg-h9qr](https://github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qr) (high): a client floods
105
+ ping frames without reading the replies, the server buffers the automatic pongs, and the process runs out of memory. It
106
+ needs no authentication, and every application with GraphQL subscriptions accepts the WebSocket. Patched in `ws`
107
+ 8.23.0. The GraphQL WebSocket server runs on the `ws` copy of `@nestjs/graphql`, which 14.2.1 — the newest release —
108
+ exact-pins at 8.22.1. nest-server's own `overrides:` do not reach your install (`docs/security-overrides.md`), so put the
109
+ entry into your project's `pnpm-workspace.yaml` and run `pnpm install`. A nest-server-starter based project already has
110
+ an 8.x entry, `'ws@>=8.0.0 <8.22.1': 8.22.1`: **replace** it, do not only raise its target — its key does not match
111
+ the exact `8.22.1` that `@nestjs/graphql` requests, so the vulnerable copy would stay. The 7.x entry stays as it is.
112
+
113
+ ```yaml
114
+ overrides:
115
+ # GHSA-37g9-w4hg-h9qr (high): @nestjs/graphql 14.2.1 exact-pins ws 8.22.1. Keep the target in lockstep with the
116
+ # ws version @lenne.tech/nest-server declares (8.23.0 since 12.9.4). Remove once @nestjs/graphql pins ws >= 8.23.0.
117
+ 'ws@>=8.0.0 <8.23.0': '8.23.0'
118
+ ```
119
+
120
+ `pnpm why ws` must then show a single `ws@8.23.0`. Until GitHub's global advisory database lists the advisory,
121
+ `pnpm audit` does not report the vulnerable version — a green audit does not mean the project is not affected. A
122
+ vendor-mode project adds the same entry.
123
+
124
+ ## Troubleshooting
125
+
126
+ | Symptom | Cause | Fix |
127
+ |---|---|---|
128
+ | `ERROR [CoreFileController] File download failed: aborted` with `socketCloseListener` in the stack, one per aborted download | 12.8.9 – 12.9.3 on S3 | Update to 12.9.4 |
129
+ | The application stops at startup after the update, naming a guard, interceptor, pipe or a `forRoutes()` / `exclude()` entry | NestJS 12.5.0 refuses what 12.4 ignored (§2) | Correct or remove the entry; it never took effect |
130
+ | `pnpm why ws` lists `ws@8.22.1` under `@nestjs/graphql` | The override from §3 is missing, or the old `<8.22.1` key was kept with only its target raised | Use exactly `'ws@>=8.0.0 <8.23.0': '8.23.0'`, `pnpm install` |
131
+
132
+ ## Module Documentation
133
+
134
+ - `src/core/modules/file/README.md` — "Error responses"
135
+ - `docs/security-overrides.md` — "Status since 12.9.4", "The fix"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "12.9.3",
3
+ "version": "12.9.4",
4
4
  "type": "module",
5
5
  "description": "Server framework in TypeScript on top of NestJS: GraphQL and REST APIs on MongoDB, PostgreSQL, MySQL or MariaDB, with authentication, field-level permissions, multi-tenancy, offline sync and an AI assistant.",
6
6
  "keywords": [
@@ -106,15 +106,15 @@
106
106
  "@as-integrations/express5": "1.1.2",
107
107
  "@getbrevo/brevo": "6.2.0",
108
108
  "@modelcontextprotocol/sdk": "1.32.2",
109
- "@nestjs/apollo": "14.2.0",
110
- "@nestjs/common": "12.4.2",
111
- "@nestjs/core": "12.4.2",
112
- "@nestjs/graphql": "14.2.0",
113
- "@nestjs/jwt": "12.0.4",
114
- "@nestjs/passport": "12.0.1",
115
- "@nestjs/platform-express": "12.4.2",
116
- "@nestjs/schedule": "12.0.3",
117
- "@nestjs/swagger": "12.1.1",
109
+ "@nestjs/apollo": "14.2.1",
110
+ "@nestjs/common": "12.5.0",
111
+ "@nestjs/core": "12.5.0",
112
+ "@nestjs/graphql": "14.2.1",
113
+ "@nestjs/jwt": "12.0.5",
114
+ "@nestjs/passport": "12.0.2",
115
+ "@nestjs/platform-express": "12.5.0",
116
+ "@nestjs/schedule": "12.0.4",
117
+ "@nestjs/swagger": "12.1.2",
118
118
  "@nestjs/terminus": "12.1.0",
119
119
  "@tus/file-store": "2.1.2",
120
120
  "@tus/server": "2.4.7",
@@ -128,7 +128,7 @@
128
128
  "dotenv": "18.0.10",
129
129
  "ejs": "7.0.2",
130
130
  "express": "5.3.0",
131
- "graphql": "16.14.2",
131
+ "graphql": "16.15.0",
132
132
  "graphql-query-complexity": "2.0.0",
133
133
  "graphql-subscriptions": "3.0.0",
134
134
  "graphql-upload": "17.1.0",
@@ -139,7 +139,7 @@
139
139
  "lodash": "4.18.1",
140
140
  "multer": "2.5.0",
141
141
  "node-mailjet": "6.0.11",
142
- "nodemailer": "10.4.1",
142
+ "nodemailer": "10.5.0",
143
143
  "passport": "0.7.0",
144
144
  "passport-jwt": "4.0.1",
145
145
  "reflect-metadata": "0.2.2",
@@ -148,7 +148,7 @@
148
148
  "supertest": "7.3.2",
149
149
  "ts-morph": "28.0.0",
150
150
  "undici": "7.30.2",
151
- "ws": "8.22.1",
151
+ "ws": "8.23.0",
152
152
  "yuml-diagram": "1.2.0"
153
153
  },
154
154
  "peerDependencies": {
@@ -228,16 +228,16 @@
228
228
  }
229
229
  },
230
230
  "devDependencies": {
231
- "@aws-sdk/client-s3": "3.1165.0",
232
- "@aws-sdk/lib-storage": "3.1165.0",
233
- "@aws-sdk/s3-request-presigner": "3.1165.0",
234
- "@better-auth/core": "1.7.19",
235
- "@better-auth/passkey": "1.7.19",
231
+ "@aws-sdk/client-s3": "3.1168.0",
232
+ "@aws-sdk/lib-storage": "3.1168.0",
233
+ "@aws-sdk/s3-request-presigner": "3.1168.0",
234
+ "@better-auth/core": "1.7.23",
235
+ "@better-auth/passkey": "1.7.23",
236
236
  "@compodoc/compodoc": "2.0.0",
237
- "@nestjs/cli": "12.0.12",
237
+ "@nestjs/cli": "12.0.13",
238
238
  "@nestjs/mongoose": "12.0.1",
239
239
  "@nestjs/schematics": "12.0.13",
240
- "@nestjs/testing": "12.4.2",
240
+ "@nestjs/testing": "12.5.0",
241
241
  "@swc/cli": "0.8.2",
242
242
  "@swc/core": "1.16.22",
243
243
  "@tus/s3-store": "2.1.0",
@@ -251,12 +251,12 @@
251
251
  "@types/passport": "1.0.17",
252
252
  "@types/pg": "8.23.1",
253
253
  "@vitest/coverage-v8": "5.1.0",
254
- "better-auth": "1.7.19",
255
- "bullmq": "6.7.2",
254
+ "better-auth": "1.7.23",
255
+ "bullmq": "6.7.6",
256
256
  "cross-env": "10.1.0",
257
257
  "drizzle-orm": "1.0.0-rc.5",
258
258
  "ioredis": "6.0.0",
259
- "kysely": "0.29.8",
259
+ "kysely": "0.29.9",
260
260
  "mongodb": "7.8.0",
261
261
  "mongoose": "9.12.1",
262
262
  "mysql2": "3.24.6",
@@ -264,17 +264,17 @@
264
264
  "otpauth": "9.6.0",
265
265
  "oxfmt": "0.78.0",
266
266
  "oxlint": "1.93.0",
267
- "oxlint-tsgolint": "7.0.2006",
267
+ "oxlint-tsgolint": "7.0.2007",
268
268
  "pg": "8.23.1",
269
269
  "playwright-core": "1.65.0",
270
270
  "rimraf": "6.1.4",
271
- "smtp-server": "3.21.3",
271
+ "smtp-server": "3.21.4",
272
272
  "tsx": "4.23.15",
273
273
  "tus-js-client": "4.3.1",
274
- "typeorm": "1.1.2",
274
+ "typeorm": "1.1.3",
275
275
  "typescript": "6.0.3",
276
276
  "unplugin-swc": "2.0.0",
277
- "vite": "8.3.7",
277
+ "vite": "8.3.8",
278
278
  "vitest": "5.1.0"
279
279
  },
280
280
  "main": "dist/index.js",
@@ -503,6 +503,7 @@ on the controller rather than the exported function of the same name.
503
503
  | `If-None-Match` names the file's weak `ETag` (`W/"<id>"`), after the rights check | `304` | No body; the store is not read |
504
504
  | The store hands out no connection within 3 attempts of `s3.connectionTimeoutMs` (pool busy) | `503` | `Retry-After: 5`; the store is busy, not broken |
505
505
  | The client left before the stream was handed over | — | Nothing is sent; the stream is destroyed at once, a pending S3 request aborted |
506
+ | The client left mid-transfer and the store reports the abort (S3: `aborted`) (12.9.4+) | — | Nothing is sent; logged at debug, never as ERROR |
506
507
  | `Range` names one range inside the file (12.9.3+) | `206` | `Content-Range: bytes <start>-<end>/<length>`, only those bytes |
507
508
  | `Range` starts at or past the end of the file (12.9.3+) | `416` | `Content-Range: bytes */<length>`, `ErrorCode.FILE_RANGE_NOT_SATISFIABLE` |
508
509
 
@@ -233,6 +233,23 @@ export function pipeFileToResponse(stream: Readable, res: Response): Response {
233
233
  .json({ error: 'Service Unavailable', message: 'File storage is busy, please retry', statusCode: 503 });
234
234
  return;
235
235
  }
236
+ // The client has gone, and the store reports the abort that followed. Not a server error: nobody receives an
237
+ // answer any more, so no ERROR line per aborted download and no status. The order is the reason this cannot be
238
+ // left to the release listeners above: `downloadAbortSignal()` registers its listeners first (it must, the client
239
+ // may leave during the rights check), so on the event that reports the client gone it aborts the S3 request
240
+ // BEFORE this function's own listener runs, and the SDK fails the body with `aborted` inside that same dispatch.
241
+ // Measured through the Nest route (a GET whose request is not read to its end, so its `close` reports the
242
+ // abort): every aborted S3 download logged `File download failed: aborted` — one ERROR per seek of a video
243
+ // player, burying the `S3 socket pool exhausted:` line. A store error while the client is still there stays an
244
+ // ERROR below.
245
+ if (state.responseClosed || state.clientGoneSignal || isResponseGone(res)) {
246
+ state.clientGoneSignal ||= 'store error after the client left';
247
+ fileStreamLogger.debug(`File download ended after the client left: ${err.message}`);
248
+ if (!res.destroyed) {
249
+ res.destroy();
250
+ }
251
+ return;
252
+ }
236
253
  // The answer to the CLIENT stays deliberately indistinguishable from an
237
254
  // unknown id, but the server must not lose the event: a files document
238
255
  // without its chunks is data corruption, and an error silently converted