Overrides for Payload's mongoose and happy-dom advisories; doctor rule transitive-min

@payloadcms/db-mongodb pins mongoose 8.24.1 (one critical, two high, two moderate
advisories, fixed by 8.24.7) and @lexical/headless 0.50 brings happy-dom 20.x (two
high, fixed by 21.0.4). Payload 3.93.0 fixes neither.

- reference/package.json (and so the starter): pnpm.overrides for mongoose
  (~8.24.10) and happy-dom (^21.0.4); pnpm audit --prod on the reference is clean
- root package.json: the happy-dom override for the plugin's own dev tree
- ipal-doctor: transitive-min reports mongoose 8.x < 8.24.7 (error) and
  happy-dom < 21.0.4 (warning) from the lockfile and prints the override line;
  DoctorContext.installedAll(name)
- AGENT.md §4 item 12, ipal-setup, ipal-upgrade, doctor.md, README, CHANGELOG

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-17 00:01:58 +01:00
co-authored by Claude Fable 5.2
parent 7c034a07ef
commit de8362820f
15 changed files with 209 additions and 36 deletions
+4 -1
View File
@@ -97,7 +97,10 @@ pnpm add @intecion/ipal-kit @payloadcms/plugin-seo @payloadcms/plugin-form-build
GHSA-mfr8-8qww-v76h — AGENT.md §4 item 11): `pnpm add [email protected] [email protected] sharp@^0.35.5` when
create-payload-app gave you an older one.
**Node.js 20 or later** (the plugin's `nodemailer` 10 requires it). After the install, `pnpm audit --prod` → no high or
critical; with `payload` 3.90.x add the `dompurify`, `graphql-scalars` and `undici` overrides from AGENT.md §4 item 12.
critical; with `payload` 3.90.x add the `dompurify`, `graphql-scalars`, `happy-dom`, `mongoose` and `undici` overrides
from AGENT.md §4 item 12 (`"mongoose@>=8 <8.24.7": "~8.24.10"` lifts the 8.24.1 that `@payloadcms/db-mongodb` pins —
one critical and two high advisories; `"happy-dom@<21.0.4": "^21.0.4"` fixes two high ones). `pnpm exec ipal-doctor`
→ no `transitive-min` finding.
`nodemailer`, `lucide-react`, `slugify`, `server-only` come with the plugin — do not add them (your own
`lucide-react` only `~0.400.0`). In `package.json`: pin every `@payloadcms/*` (ui, next, db-*, richtext-lexical,
plugin-seo, plugin-form-builder, storage-s3) in `pnpm.overrides` **to the exact `payload` version**, then
+11 -2
View File
@@ -88,8 +88,17 @@ the banner → `<CookieBanner settings="detailed">` and remove the copy. With `d
prints no security-upgrade warning.
**Every upgrade — dependency advisories** (AGENT.md §4 item 12): `pnpm audit --prod`; with `payload` 3.90.x add the
`dompurify`, `graphql-scalars` and `undici` overrides, `pnpm install`, audit again. **Check:** no high or critical (the
`deepmerge` low has no fix yet).
`dompurify`, `graphql-scalars`, `happy-dom`, `mongoose` and `undici` overrides to `pnpm.overrides`, `pnpm install`, audit
again. MongoDB sites need the `mongoose` one now: `@payloadcms/db-mongodb` pins 8.24.1 (up to Payload 3.93.0), which has
a critical advisory (GHSA-pcrw-h46h-c93h) and four more, all fixed in 8.24.7:
```json
"happy-dom@<21.0.4": "^21.0.4",
"mongoose@>=8 <8.24.7": "~8.24.10"
```
Then `pnpm install`, `pnpm build`, commit `package.json` and the lockfile, redeploy on Coolify (the new image ships the
fixed packages; no data or schema change, no migration). **Check:** `pnpm audit --prod` → no high or critical (the
`deepmerge` low has no fix yet); `pnpm why mongoose happy-dom` → 8.24.7 or later, 21.0.4 or later;
`pnpm exec ipal-doctor` → no `transitive-min` finding; the panel opens and a document saves.
**→ 1.14.0 (PROGRAMISTA §6, items 48–49; CHANGELOG "What projects must update" — do all 8, in order):**
1. `pnpm payload generate:importmap` — `@intecion/ipal-kit/admin#FaviconCheck` (hint under Site settings → Site icon)
+2
View File
@@ -67,6 +67,8 @@
"@payloadcms/ui": "3.90.2",
"dompurify@<3.4.17": "^3.4.17",
"graphql-scalars@<2.0.1": "^2.0.1",
"happy-dom@<21.0.4": "^21.0.4",
"mongoose@>=8 <8.24.7": "~8.24.10",
"undici@>=7 <7.30.1": "^7.30.1"
}
},
+20 -18
View File
@@ -15,6 +15,8 @@ overrides:
'@payloadcms/ui': 3.90.2
dompurify@<3.4.17: ^3.4.17
graphql-scalars@<2.0.1: ^2.0.1
happy-dom@<21.0.4: ^21.0.4
mongoose@>=8 <8.24.7: ~8.24.10
undici@>=7 <7.30.1: ^7.30.1
importers:
@@ -1641,8 +1643,8 @@ packages:
resolution: {integrity: sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA==}
engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}
happy-dom@20.14.6:
resolution: {integrity: sha512-5DDsf4QmEIlRL6NkCv/fxSjYHHkZceL/IaYQdJc2h3G7DRTEai++VTjbfL0LB9geW2VrA3+vrjF3Efx+OTtX0Q==}
happy-dom@21.0.4:
resolution: {integrity: sha512-tFm+GaLBgo6o0awHnvHaNoraVo27qJ+2tZEtZ+cIa08hXbeitrxAJajLI05hsUy/2/YTKcUjQYzHe5mCcraLBw==}
engines: {node: '>=20.0.0'}
[email protected]:
@@ -2080,14 +2082,14 @@ packages:
resolution: {integrity: sha512-8chOqpVE3bcoWT2pIgcJeIZlXaOfQCavZgQZF4qytUtjRBqsNMyzUoR16qdw9XL2kC478N8iA8z0AA+NSS0d1A==}
engines: {node: '>=16.20.1'}
peerDependencies:
mongoose: '>=5.11.10'
mongoose: ~8.24.10
[email protected]:
resolution: {integrity: sha512-0LOsVEQmjrbJKVDi/IvFEhIezmuRjUE4loGgslv57j9nK/NMC+mbKT0QnaPSPpib4lByKVBcy3VbDa1TvlHZjA==}
engines: {node: '>=4.0.0'}
[email protected]:
resolution: {integrity: sha512-UpHBA0l5kHyKJQFjmBaFYQFo5sgz1DK0TRqDkOyBLYbqiIbKKhIvBpHWBXqeo0rgW4kGI1UhhAw+kTQZoj1BdA==}
[email protected]0:
resolution: {integrity: sha512-mvIBeudAZjSXteYMl66KA/2SJoTPAYqkkFLiZK5mzrquNDbDwmtvnK9azSRXKz0TWcCcc5ATG6WiOU0qsp2xNw==}
engines: {node: '>=16.20.1'}
[email protected]:
@@ -2098,8 +2100,8 @@ packages:
resolution: {integrity: sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==}
engines: {node: '>=4.0.0'}
[email protected].0:
resolution: {integrity: sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==}
[email protected].1:
resolution: {integrity: sha512-C99lWV0TFI34pS008jBsi3JrE2xZPnTgUw5yApQR71nRP0hxLy8D5m1Lbbk83c8AQWJwdJ0329HzFtZ1MRTUIw==}
engines: {node: '>=14.0.0'}
[email protected]:
@@ -3405,7 +3407,7 @@ snapshots:
'@lexical/[email protected]([email protected])':
dependencies:
'@lexical/internal': 0.50.0([email protected])
happy-dom: 20.14.6
happy-dom: 21.0.4
lexical: 0.50.0([email protected])
optionalDependencies:
typescript: 5.9.3
@@ -3624,8 +3626,8 @@ snapshots:
'@payloadcms/[email protected]([email protected]([email protected])([email protected]))':
dependencies:
mongoose: 8.24.1
mongoose-paginate-v2: 1.9.4([email protected])
mongoose: 8.24.10
mongoose-paginate-v2: 1.9.4([email protected]0)
payload: 3.90.2([email protected])([email protected])
prompts: 2.4.2
uuid: 13.0.2
@@ -4368,7 +4370,7 @@ snapshots:
[email protected]: {}
happy-dom@20.14.6:
happy-dom@21.0.4:
dependencies:
'@types/node': 22.20.5
'@types/whatwg-mimetype': 3.0.2
@@ -4877,24 +4879,24 @@ snapshots:
bson: 6.10.4
mongodb-connection-string-url: 3.0.2
[email protected]([email protected]):
[email protected]([email protected]0):
dependencies:
mongoose: 8.24.1
mongoose: 8.24.10
mpath: 0.8.4
[email protected]([email protected]):
[email protected]([email protected]0):
dependencies:
mongoose-lean-virtuals: 1.1.1([email protected])
mongoose-lean-virtuals: 1.1.1([email protected]0)
transitivePeerDependencies:
- mongoose
[email protected]:
[email protected]0:
dependencies:
bson: 6.10.4
kareem: 2.6.3
mongodb: 6.20.0
mpath: 0.9.0
mquery: 5.0.0
mquery: 5.0.1
ms: 2.1.3
sift: 17.1.3
transitivePeerDependencies:
@@ -4911,7 +4913,7 @@ snapshots:
[email protected]: {}
[email protected].0:
[email protected].1:
dependencies:
debug: 4.4.3
transitivePeerDependencies: