@lenne.tech/nest-server 11.46.8 → 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,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.
|
|
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.
|
|
132
|
+
"mongoose": "9.12.3",
|
|
133
133
|
"multer": "2.5.0",
|
|
134
134
|
"node-mailjet": "6.0.11",
|
|
135
135
|
"nodemailer": "10.4.1",
|