@lenne.tech/nest-server 11.46.7 → 11.46.9

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.
@@ -0,0 +1,86 @@
1
+ # Migration Guide: 11.46.7 → 11.46.8
2
+
3
+ ## Overview
4
+
5
+ | Category | Details |
6
+ |---|---|
7
+ | **Breaking Changes** | None |
8
+ | **New Features** | None |
9
+ | **Bugfixes** | None |
10
+ | **Security** | The Node.js runtime of a deployed API must be at least 24.22.3 (22.23.5, 26.13.1): a Brotli decoder flaw in older versions is reachable through every request body (§1). `cross-spawn` 7.1.2 and `rimraf` 6.1.4 clear GHSA-ghv9-86vm-4v8m (critical) and GHSA-qxr8-q827-836c (moderate) in the framework's own tree (§2) |
11
+ | **Migration Effort** | Raise the Node.js base image of the project's `Dockerfile` and rebuild; re-resolve `cross-spawn` in the project's lockfile |
12
+
13
+ ## Quick Migration
14
+
15
+ ```bash
16
+ pnpm add @lenne.tech/nest-server@11.46.8
17
+ pnpm run update # nest-server-starter based projects
18
+ pnpm update cross-spawn # the project's lockfile keeps its own copy (§2)
19
+ pnpm audit
20
+ pnpm run build
21
+ pnpm test
22
+ ```
23
+
24
+ **Vendor mode**: run `/lt-dev:backend:update-nest-server-core` as usual.
25
+
26
+ Then raise the Node.js image of the deployment (§1). The package update alone does not change the runtime.
27
+
28
+ ## 1. Security: Node.js runtime at least 24.22.3
29
+
30
+ **Action needed** for every deployed API, in npm and in vendor mode.
31
+
32
+ Node.js versions before 22.23.4, 24.22.1 and 26.12.1 contain CVE-2026-111497 (high): malformed Brotli input makes the
33
+ bundled decoder write past the end of an internal buffer, which permits remote code execution. CISA lists it as
34
+ actively exploited. An API built on nest-server reaches the decoder without authentication: Express's body parser
35
+ decompresses a request body sent with `Content-Encoding: br`, before any guard runs, and a reverse proxy passes such a
36
+ body through. The November security releases (22.23.5, 24.22.3, 26.13.1) fix further CVEs in the TLS server, HTTP/2
37
+ and the HTTP client, so take those versions as the minimum.
38
+
39
+ The `Dockerfile` of nest-server-starter pinned `node:24-alpine` at a digest that is Node.js 24.18.0. Replace the base
40
+ image in every stage:
41
+
42
+ ```dockerfile
43
+ # Before
44
+ FROM node:24-alpine@sha256:a0b9bf06e4e6193cf7a0f58816cc935ff8c2a908f81e6f1a95432d679c54fbfd AS deps
45
+ # After
46
+ FROM node:24.22.3-alpine@sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5 AS deps
47
+ ```
48
+
49
+ The version tag in front of the digest only documents the version; Docker uses the digest. Check the running image
50
+ after the deploy:
51
+
52
+ ```bash
53
+ docker run --rm --entrypoint node <image> -p process.version # v24.22.3 or later on the 24.x line
54
+ ```
55
+
56
+ A project on another runtime (a CI image, a PaaS Node.js version, a 22.x or 26.x image) raises it to 22.23.5, 24.22.3
57
+ or 26.13.1 at least. `engines.node` of `@lenne.tech/nest-server` stays `>= 22.15`: the package itself has no fix to
58
+ ship, the runtime does.
59
+
60
+ ## 2. Security: `cross-spawn` and `glob`
61
+
62
+ **Action needed** in the project's lockfile; nest-server's own lockfile does not reach a consumer.
63
+
64
+ - **GHSA-ghv9-86vm-4v8m** (critical, `cross-spawn` >= 7.0.0 < 7.1.0): command injection on Windows when a `.bat` or
65
+ `.cmd` file is started. `cross-spawn` reaches a project through `@modelcontextprotocol/sdk` (a dependency of the
66
+ framework), `cross-env` and `@swc/cli` (the SWC builder of `@nestjs/cli`). Every path accepts 7.1.x, so
67
+ `pnpm update cross-spawn` lifts all of them; `pnpm why cross-spawn` then lists 7.1.2 only.
68
+ - **GHSA-qxr8-q827-836c** (moderate, `glob` >= 13.0.5 <= 14.0.5): fixed only in glob 14.0.6. `rimraf` 6.1.4 moved to
69
+ glob 14 and is clean; `@nestjs/cli` 11.0.24, the newest 11.x, pins glob 13.0.6 exactly and cannot take the fix. Its
70
+ glob matches the developer's own build patterns, never request input. The framework lists the advisory in
71
+ `auditConfig.ignoreGhsas` with an `unusableFixConsumers` entry (`'@nestjs/cli@11.0.24 cannot use 14.0.6'`), which
72
+ `check:overrides` re-tests on every run; a project with the same tree can do the same. Do not override glob across
73
+ the major for `@nestjs/cli`.
74
+
75
+ ## Troubleshooting
76
+
77
+ | Symptom | Cause | Fix |
78
+ |---|---|---|
79
+ | `process.version` in the running container is below 24.22.3 | the image was built from a cached or still pinned base layer | Raise the digest in every `FROM` line and build with `--pull` |
80
+ | `pnpm audit` still reports GHSA-ghv9-86vm-4v8m | the project's lockfile keeps `cross-spawn` 7.0.6 | `pnpm update cross-spawn` |
81
+ | `pnpm audit` reports GHSA-qxr8-q827-836c via `@nestjs/cli>glob` | `@nestjs/cli` 11 pins glob 13.0.6 | Declare it as a residual (§2) |
82
+
83
+ ## Module Documentation
84
+
85
+ - [Node.js October 2026 security releases](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)
86
+ - [Node.js November 2026 security releases](https://nodejs.org/en/blog/vulnerability/november-2026-security-releases)
@@ -0,0 +1,61 @@
1
+ # Migration Guide: 11.46.8 → 11.46.9
2
+
3
+ ## Overview
4
+
5
+ | Category | Details |
6
+ |---|---|
7
+ | **Breaking Changes** | None |
8
+ | **New Features** | None |
9
+ | **Bugfixes** | None |
10
+ | **Security** | mongoose 9.12.3 clears GHSA-xfcm-rmv3-crmq (high) and GHSA-25v4-hrwm-qj9f (moderate) (§1) |
11
+ | **Migration Effort** | Update the package; a project that pins mongoose itself raises that pin too |
12
+
13
+ ## Quick Migration
14
+
15
+ ```bash
16
+ pnpm add @lenne.tech/nest-server@11.46.9
17
+ pnpm run update # nest-server-starter based projects: raises the project's own mongoose pin
18
+ pnpm audit
19
+ pnpm run build
20
+ pnpm test
21
+ ```
22
+
23
+ **Vendor mode**: run `/lt-dev:backend:update-nest-server-core` as usual, then raise the project's own `mongoose`
24
+ dependency to 9.12.3.
25
+
26
+ ## 1. Security: mongoose 9.12.3
27
+
28
+ **Action needed** in every project on 11.x. Until 11.46.8 the framework pinned mongoose 9.12.0 as a dependency, so a
29
+ project could not lift it without overruling that pin, and `pnpm audit` reported both advisories.
30
+
31
+ - **GHSA-xfcm-rmv3-crmq** (high, mongoose >= 9.0.0 < 9.12.2): `sanitizeProjection` can be bypassed, so a query
32
+ returns fields the schema deselects with `select: false`.
33
+ - **GHSA-25v4-hrwm-qj9f** (moderate, mongoose >= 9.0.0 < 9.12.2): `sanitizeFilter` lets MongoDB's internal top-level
34
+ query operators (such as `$_internalSchemaXor`) through.
35
+
36
+ nest-server itself sets neither `sanitizeFilter` nor `sanitizeProjection`, so its own queries are not affected. A
37
+ project is directly exposed when it switched one of the two options on (globally with
38
+ `mongoose.set()`, per schema or per query) and passes request data into a query or projection.
39
+
40
+ 11.46.9 pins mongoose 9.12.3, the newest 9.12.x. Its dependencies are the same as 9.12.0's (mongodb `~7.8`), so
41
+ nothing else moves.
42
+
43
+ A project that declares `mongoose` in its own `package.json` (nest-server-starter does) keeps its own copy until that
44
+ pin rises too. `pnpm run update` raises it to the framework's version; without the starter script:
45
+
46
+ ```bash
47
+ pnpm add mongoose@9.12.3
48
+ pnpm why mongoose # 9.12.3 only
49
+ ```
50
+
51
+ ## Troubleshooting
52
+
53
+ | Symptom | Cause | Fix |
54
+ |---|---|---|
55
+ | `pnpm audit` still reports GHSA-xfcm-rmv3-crmq or GHSA-25v4-hrwm-qj9f | the project pins mongoose 9.12.0 or 9.12.1 itself | `pnpm run update`, or `pnpm add mongoose@9.12.3` |
56
+ | Two mongoose versions in `pnpm why mongoose` | the project's pin and the framework's differ | Raise the project's pin to 9.12.3 |
57
+
58
+ ## Module Documentation
59
+
60
+ - [GHSA-xfcm-rmv3-crmq](https://github.com/advisories/GHSA-xfcm-rmv3-crmq)
61
+ - [GHSA-25v4-hrwm-qj9f](https://github.com/advisories/GHSA-25v4-hrwm-qj9f)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "11.46.7",
3
+ "version": "11.46.9",
4
4
  "description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
5
5
  "keywords": [
6
6
  "node",
@@ -129,7 +129,7 @@
129
129
  "json-to-graphql-query": "2.3.0",
130
130
  "lodash": "4.18.1",
131
131
  "mongodb": "7.8.0",
132
- "mongoose": "9.12.0",
132
+ "mongoose": "9.12.3",
133
133
  "multer": "2.5.0",
134
134
  "node-mailjet": "6.0.11",
135
135
  "nodemailer": "10.4.1",
@@ -219,7 +219,7 @@
219
219
  "otpauth": "9.5.2",
220
220
  "oxfmt": "0.73.0",
221
221
  "oxlint": "1.88.0",
222
- "rimraf": "6.1.3",
222
+ "rimraf": "6.1.4",
223
223
  "smtp-server": "3.21.1",
224
224
  "ts-node": "10.9.2",
225
225
  "tsconfig-paths": "4.2.0",