@lenne.tech/nest-server 11.46.8 → 11.46.10
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,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)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Migration Guide: 11.46.9 → 11.46.10
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
| Category | Details |
|
|
6
|
+
|---|---|
|
|
7
|
+
| **Breaking Changes** | None |
|
|
8
|
+
| **New Features** | None |
|
|
9
|
+
| **Bugfixes** | None |
|
|
10
|
+
| **Security** | undici 7.30.5 (13 advisories of 2026-12-04 on 7.30.2, seven high) and nodemailer 10.6.3 (GHSA-w5r8-mmxv-957g) (§1) |
|
|
11
|
+
| **Migration Effort** | Update the package. A project that installs with `--frozen-lockfile` before 2026-12-05 13:05 UTC adds one `minimumReleaseAgeExclude` entry (§1) |
|
|
12
|
+
|
|
13
|
+
## Quick Migration
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add @lenne.tech/nest-server@11.46.10
|
|
17
|
+
pnpm run update # nest-server-starter based projects
|
|
18
|
+
pnpm audit
|
|
19
|
+
pnpm run build
|
|
20
|
+
pnpm test
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Vendor mode**: run `/lt-dev:backend:update-nest-server-core` with `--target 11.46.10` as usual, then raise the
|
|
24
|
+
project's own `undici` to 7.30.5 and `nodemailer` to 10.6.3: in vendor mode they are the project's dependencies.
|
|
25
|
+
|
|
26
|
+
## 1. Security: undici 7.30.5 and nodemailer 10.6.3
|
|
27
|
+
|
|
28
|
+
nodejs/undici published 13 advisories for the 7.x line on 2026-12-04; all of them cover the 7.30.2 that 11.46.9
|
|
29
|
+
ships, seven are high, and all are fixed in 7.30.4 (7.30.5 adds only a RISC-V build fix). Among them:
|
|
30
|
+
|
|
31
|
+
- **GHSA-fgj4-8x8v-fqhm** (high): the redirect interceptor verified a cross-origin redirect target's certificate
|
|
32
|
+
against the first host's name.
|
|
33
|
+
- **GHSA-h5rf-4xrf-76mc** (high): an assertion in the HTTP/1.1 response parser ends the process from `request()`
|
|
34
|
+
and `fetch()`.
|
|
35
|
+
|
|
36
|
+
The framework uses undici for `outboundFetch()`, the guarded fetch for URLs users enter (webhooks, export targets).
|
|
37
|
+
nodemailer 10.6.3 closes **GHSA-w5r8-mmxv-957g** (moderate: `attachDataUrls` leaks inline images into later
|
|
38
|
+
messages). Both are repository advisories that GitHub's global database does not list yet, so `pnpm audit` does not
|
|
39
|
+
report them. A project that overrides undici itself (an entry such as `'undici@>=7.0.0 <7.30.2': '7.30.2'`) raises
|
|
40
|
+
key and target to 7.30.5; otherwise the entry holds its other undici consumers on the vulnerable version.
|
|
41
|
+
|
|
42
|
+
**undici 7.30.5 is younger than pnpm's default release-age window (24 hours) until 2026-12-05 13:05 UTC.** An
|
|
43
|
+
install that resolves anew warns and continues; an install with `--frozen-lockfile` (CI, Docker) refuses it until
|
|
44
|
+
then. Add the exact version to `pnpm-workspace.yaml` and remove the entry after that time:
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
minimumReleaseAgeExclude:
|
|
48
|
+
- 'undici@7.30.5' # nest-server 11.46.10, undici advisories of 2026-12-04; remove after 2026-12-05 13:05 UTC
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Troubleshooting
|
|
52
|
+
|
|
53
|
+
| Symptom | Cause | Fix |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| `ERR_PNPM_NO_MATURE_MATCHING_VERSION` for `undici@7.30.5` | `--frozen-lockfile` install inside the 24-hour window (§1) | `minimumReleaseAgeExclude: ['undici@7.30.5']`, removed after 2026-12-05 13:05 UTC |
|
|
56
|
+
| `pnpm why undici` lists 7.30.2 next to 7.30.5 | a project override still targets 7.30.2 (§1) | raise its key and target to 7.30.5 |
|
|
57
|
+
|
|
58
|
+
## Module Documentation
|
|
59
|
+
|
|
60
|
+
- [undici security advisories](https://github.com/nodejs/undici/security/advisories)
|
|
61
|
+
- [GHSA-w5r8-mmxv-957g](https://github.com/nodemailer/nodemailer/security/advisories/GHSA-w5r8-mmxv-957g)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "11.46.
|
|
3
|
+
"version": "11.46.10",
|
|
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,10 +129,10 @@
|
|
|
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.
|
|
132
|
+
"mongoose": "9.12.3",
|
|
133
133
|
"multer": "2.5.0",
|
|
134
134
|
"node-mailjet": "6.0.11",
|
|
135
|
-
"nodemailer": "10.
|
|
135
|
+
"nodemailer": "10.6.3",
|
|
136
136
|
"object-path": "0.11.8",
|
|
137
137
|
"passport": "0.7.0",
|
|
138
138
|
"passport-jwt": "4.0.1",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"rxjs": "7.8.2",
|
|
142
142
|
"supertest": "7.3.1",
|
|
143
143
|
"ts-morph": "28.0.0",
|
|
144
|
-
"undici": "7.30.
|
|
144
|
+
"undici": "7.30.5",
|
|
145
145
|
"ws": "8.23.0",
|
|
146
146
|
"yuml-diagram": "1.2.0"
|
|
147
147
|
},
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"oxfmt": "0.73.0",
|
|
221
221
|
"oxlint": "1.88.0",
|
|
222
222
|
"rimraf": "6.1.4",
|
|
223
|
-
"smtp-server": "3.21.
|
|
223
|
+
"smtp-server": "3.21.9",
|
|
224
224
|
"ts-node": "10.9.2",
|
|
225
225
|
"tsconfig-paths": "4.2.0",
|
|
226
226
|
"tsx": "4.23.15",
|