@lenne.tech/nest-server 12.6.15 → 12.6.17

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.
@@ -461,6 +461,12 @@ allows minimatch in the production tree only under `@ts-morph/common` (ts-morph,
461
461
  matching globs the developer writes) — its `prodVia` form. `GHSA-3g3m-2fjr-6pw4` (glob `<= 14.0.1`) was a second
462
462
  entry until 2026-11-14 on this line (12.6.x), when rimraf 6.1.4 moved to glob 14 and no affected glob remained.
463
463
 
464
+ **Second entry since 2026-12-02 (owner decision 2026-11-15, "as GHSA-g3hv").** `GHSA-c859-jr93-m5j4` (minimatch
465
+ `>= 7.4.0 <= 11.0.7`, moderate: `minimatch.escape()` output matches more or less than the literal), fixed only in
466
+ 11.0.8, held below it by the same four consumers, none of which calls `minimatch.escape()`. It waited for GitHub's
467
+ global advisory database (listed 2026-12-01): a suppression of a GHSA the database does not know is `UNVERIFIED` and
468
+ fails under `CI`. Its guard allows minimatch in the production tree only under `@ts-morph/common`, as for GHSA-g3hv.
469
+
464
470
  **Before that, no entry from 2026-10-24.** `GHSA-vfj7-8cjw-p6xm` (braces, via nodemon / npm-watch) was
465
471
  listed from 2026-10-11 to 2026-10-24: a dev-tooling-only path of an advisory with no patched release
466
472
  at all. GitHub withdrew the advisory on 2026-10-23, and `check:overrides` reported the entry as
package/CLAUDE.md CHANGED
@@ -178,7 +178,7 @@ pnpm run check:esm # Compiles what a vendor project receives as a "type": "
178
178
  # named import Node cannot see in a CJS package, a type imported as a value,
179
179
  # a missing `.js`; see .claude/rules/architecture.md → "Module Format"
180
180
  pnpm run check:vendor-lint # The core in the vendor layout, linted with nest-server-starter's .oxlintrc.json
181
- # (main on GitHub, or --starter=<path>), type-aware, warnings fail. A vendor
181
+ # (release/12.6.x on GitHub, or --starter=<path>), type-aware, warnings fail. A vendor
182
182
  # project lints with the STARTER's file: an exception only .oxlintrc.json here
183
183
  # has is green in `lint` and a warning there. Unreachable: skipped locally, red in CI
184
184
  pnpm run check:without-mongodb # dist/ with mongoose, @nestjs/mongoose and mongodb unresolvable: loads, boots on
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-20 (v12.6.15)
3
+ > Auto-generated from source code as of 2026-12-02 (v12.6.17)
4
4
  > File: `FRAMEWORK-API.md` — compact, machine-readable API surface for Claude Code
5
5
 
6
6
  ## CoreModule.forRoot()
@@ -0,0 +1,98 @@
1
+ # Migration Guide: 12.6.15 → 12.6.16
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 clears GHSA-ghv9-86vm-4v8m (critical) 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@12.6.16
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. An image without a digest (`node:24-alpine`) is rebuilt with `docker build --pull --no-cache`:
58
+ `--no-cache` alone reuses a base image stored locally. `engines.node` of `@lenne.tech/nest-server` stays `>= 22.15`:
59
+ the package itself has no fix to ship, the runtime does.
60
+
61
+ ## 2. Security: `cross-spawn`
62
+
63
+ **Action needed** in the project's lockfile; nest-server's own lockfile does not reach a consumer.
64
+
65
+ GHSA-ghv9-86vm-4v8m (critical, `cross-spawn` >= 7.0.0 < 7.1.0): command injection on Windows when a `.bat` or `.cmd`
66
+ file is started. `cross-spawn` reaches a project through `@modelcontextprotocol/sdk` (a dependency of the framework),
67
+ `cross-env` and `@swc/cli`. Every path accepts 7.1.x, so `pnpm update cross-spawn` lifts all of them; `pnpm why
68
+ cross-spawn` then lists 7.1.2 only.
69
+
70
+ ## 3. Under the hood: GHSA-c859-jr93-m5j4 (minimatch)
71
+
72
+ The advisory (minimatch `>= 7.4.0 <= 11.0.7`, moderate: the output of `minimatch.escape()` matches more or less than
73
+ the literal) is fixed only in minimatch 11.0.8. On this line `@nestjs/cli` 12.0.11, `@swc/cli` 0.8.2,
74
+ `@ts-morph/common` 0.29.0 and nodemon 3.1.14 still depend on minimatch 9 or 10; none of them calls
75
+ `minimatch.escape()`. The repository declares it as a residual next to GHSA-g3hv-75wg-m249, with the same consumers.
76
+ A project whose `pnpm audit` reports it through these packages can declare it the same way, with the consumers its own
77
+ lockfile names:
78
+
79
+ ```yaml
80
+ auditConfig:
81
+ ignoreGhsas:
82
+ - GHSA-c859-jr93-m5j4
83
+ unusableFixConsumers:
84
+ GHSA-c859-jr93-m5j4: '@nestjs/cli@12.0.11 + @swc/cli@0.8.2 + @ts-morph/common@0.29.0 + nodemon@3.1.14 cannot use 11.0.8'
85
+ ```
86
+
87
+ ## Troubleshooting
88
+
89
+ | Symptom | Cause | Fix |
90
+ |---|---|---|
91
+ | `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` |
92
+ | `pnpm audit` still reports GHSA-ghv9-86vm-4v8m | the project's lockfile keeps `cross-spawn` 7.0.x | `pnpm update cross-spawn` |
93
+ | `pnpm audit` reports GHSA-c859-jr93-m5j4 | a dev tool on minimatch 9 or 10 | Declare it as in §3 |
94
+
95
+ ## Module Documentation
96
+
97
+ - [Node.js October 2026 security releases](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)
98
+ - [Node.js November 2026 security releases](https://nodejs.org/en/blog/vulnerability/november-2026-security-releases)
@@ -0,0 +1,63 @@
1
+ # Migration Guide: 12.6.16 → 12.6.17
2
+
3
+ ## Overview
4
+
5
+ | Category | Details |
6
+ |---|---|
7
+ | **Breaking Changes** | None. The `mongoose` peer range starts at 9.12.2 instead of 9.12.0 (§1) |
8
+ | **New Features** | None |
9
+ | **Bugfixes** | None |
10
+ | **Security** | mongoose 9.12.2 and later clear GHSA-xfcm-rmv3-crmq (high) and GHSA-25v4-hrwm-qj9f (moderate) (§1) |
11
+ | **Migration Effort** | A project on MongoDB raises its own `mongoose` to 9.12.3 |
12
+
13
+ ## Quick Migration
14
+
15
+ ```bash
16
+ pnpm add @lenne.tech/nest-server@12.6.17
17
+ pnpm run update # nest-server-starter based projects: raises the project's mongoose to 9.12.3
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 at least 9.12.2
27
+
28
+ **Action needed** in every project that keeps data in MongoDB. Since 12.1.0 `mongoose` is an optional peer: the
29
+ project installs it, so the project's own pin decides which version runs.
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
+ 12.6.17 is tested against mongoose 9.12.3 (the newest 9.12.x, with the same dependencies as 9.12.0, mongodb `~7.8`)
41
+ and declares the peer range `>=9.12.2 <10`. `pnpm run update` in a nest-server-starter based project raises the
42
+ project's pin to 9.12.3; without the starter script:
43
+
44
+ ```bash
45
+ pnpm add mongoose@9.12.3
46
+ pnpm why mongoose # 9.12.3 only
47
+ ```
48
+
49
+ A project still on 9.12.0 or 9.12.1 keeps working; pnpm reports the unmet peer range as a warning, and `pnpm audit`
50
+ reports both advisories. A project on PostgreSQL, MySQL or MariaDB alone has no mongoose installed and needs nothing.
51
+
52
+ ## Troubleshooting
53
+
54
+ | Symptom | Cause | Fix |
55
+ |---|---|---|
56
+ | `pnpm audit` reports GHSA-xfcm-rmv3-crmq or GHSA-25v4-hrwm-qj9f | the project pins mongoose 9.12.0 or 9.12.1 | `pnpm run update`, or `pnpm add mongoose@9.12.3` |
57
+ | `unmet peer mongoose@">=9.12.2 <10"` warning | same | same |
58
+
59
+ ## Module Documentation
60
+
61
+ - [GHSA-xfcm-rmv3-crmq](https://github.com/advisories/GHSA-xfcm-rmv3-crmq)
62
+ - [GHSA-25v4-hrwm-qj9f](https://github.com/advisories/GHSA-25v4-hrwm-qj9f)
63
+ - `.claude/rules/persistence.md` — MongoDB's libraries are optional peers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "12.6.15",
3
+ "version": "12.6.17",
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": [
@@ -169,7 +169,7 @@
169
169
  "ioredis": ">=5.0.0 <7",
170
170
  "kysely": ">=0.29.0 <0.30.0",
171
171
  "mongodb": ">=7.8.0 <8",
172
- "mongoose": ">=9.12.0 <10",
172
+ "mongoose": ">=9.12.2 <10",
173
173
  "mysql2": ">=3.24.6 <4",
174
174
  "pg": ">=8.23.0 <9",
175
175
  "typeorm": ">=1.1.0 <2"
@@ -264,7 +264,7 @@
264
264
  "ioredis": "6.0.0",
265
265
  "kysely": "0.29.8",
266
266
  "mongodb": "7.8.0",
267
- "mongoose": "9.12.0",
267
+ "mongoose": "9.12.3",
268
268
  "mysql2": "3.24.6",
269
269
  "nodemon": "3.1.14",
270
270
  "otpauth": "9.6.0",