Overrides for two advisories published 2026-12-01: ws below 8.23.0 (GHSA-37g9-w4hg-h9qr, high, via payload) and cross-spawn below 7.1.0 (GHSA-ghv9-86vm-4v8m, critical, Windows only, via cross-env / eslint) in the plugin and the reference site (and so the starter); doctor transitive-min, AGENT.md §4 item 12, setup and upgrade skills, changelog

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 23:54:52 +01:00
co-authored by Claude Opus 5.5
parent 713b28e79f
commit f38a8cc677
12 changed files with 93 additions and 33 deletions
+3 -2
View File
@@ -100,8 +100,9 @@ create-payload-app gave you an older one.
**Payload 3.94.1** (what the reference site and the starter use; the plugin accepts `^3.90.2`): every `payload` /
`@payloadcms/*` on the same exact version, `react` and `react-dom` 19.3.1 (Payload 3.94 requires `^19.3.1`), and
**Node.js 22.23.5 or later** on the 22 line (`"engines": { "node": ">=22.23.5 <23" }`, `.nvmrc` `22`) — Payload 3.94's
minimum, also in Coolify (Nixpacks picks the patch: check `node -v` in the app's Terminal after the first deploy). After the install, `pnpm audit --prod` → no high or critical; add the `dompurify` and `happy-dom` overrides
from AGENT.md §4 item 12 (`"happy-dom@<21.0.4": "^21.0.4"` fixes two high advisories Lexical still brings in). On an
minimum, also in Coolify (Nixpacks picks the patch: check `node -v` in the app's Terminal after the first deploy). After the install, `pnpm audit --prod` → no high or critical; add the `cross-spawn`, `dompurify`, `happy-dom` and `ws` overrides
from AGENT.md §4 item 12 (`"happy-dom@<21.0.4": "^21.0.4"` fixes two high advisories Lexical still brings in,
`"ws@>=8 <8.23.0": "^8.23.0"` one in Payload's `ws`). On an
older Payload also the `mongoose` (MongoDB) and `undici` ones listed there. `pnpm exec iapl-doctor` → no
`transitive-min` finding.
`nodemailer`, `lucide-react`, `slugify`, `server-only` come with the plugin — do not add them (your own
@@ -187,11 +187,14 @@ Postgres/SQLite run `pnpm payload migrate:create` anyway and commit it if it is
saves; `pnpm exec iapl-doctor` → no `versions` finding; Coolify app → Terminal → `node -v` → 22.23.5 or later.
**Every upgrade — dependency advisories** (AGENT.md §4 item 12): `pnpm audit --prod`; on Payload 3.94.x add the
`dompurify` and `happy-dom` overrides to `pnpm.overrides`; on an older Payload also `mongoose` (MongoDB sites; 3.90–3.93
`cross-spawn`, `dompurify`, `happy-dom` and `ws` overrides to `pnpm.overrides` (`ws`: GHSA-37g9-w4hg-h9qr, high;
`cross-spawn`: GHSA-ghv9-86vm-4v8m, critical, Windows only; both 1.18.0); on an older Payload also `mongoose` (MongoDB sites; 3.90–3.93
pin 8.24.1, which has a critical advisory, GHSA-pcrw-h46h-c93h, and four more) and `undici` (3.90–3.91):
```json
"cross-spawn@>=7 <7.1.0": "^7.1.2",
"dompurify@<3.4.17": "^3.4.17",
"happy-dom@<21.0.4": "^21.0.4",
"ws@>=8 <8.23.0": "^8.23.0",
"mongoose@>=8 <8.24.7": "~8.24.10",
"undici@>=7 <7.30.1": "^7.30.1"
```
+3 -1
View File
@@ -65,8 +65,10 @@
"@payloadcms/richtext-lexical": "3.94.1",
"@payloadcms/storage-s3": "3.94.1",
"@payloadcms/ui": "3.94.1",
"cross-spawn@>=7 <7.1.0": "^7.1.2",
"dompurify@<3.4.17": "^3.4.17",
"happy-dom@<21.0.4": "^21.0.4"
"happy-dom@<21.0.4": "^21.0.4",
"ws@>=8 <8.23.0": "^8.23.0"
}
},
"dependenciesMeta": {
+11 -9
View File
@@ -13,8 +13,10 @@ overrides:
'@payloadcms/richtext-lexical': 3.94.1
'@payloadcms/storage-s3': 3.94.1
'@payloadcms/ui': 3.94.1
cross-spawn@>=7 <7.1.0: ^7.1.2
dompurify@<3.4.17: ^3.4.17
happy-dom@<21.0.4: ^21.0.4
ws@>=8 <8.23.0: ^8.23.0
importers:
@@ -1428,8 +1430,8 @@ packages:
engines: {node: '>=20'}
hasBin: true
cross-spawn@7.0.6:
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
cross-spawn@7.1.2:
resolution: {integrity: sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==}
engines: {node: '>= 8'}
[email protected]:
@@ -2663,8 +2665,8 @@ packages:
[email protected]:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
[email protected]2.0:
resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==}
[email protected]3.1:
resolution: {integrity: sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==}
engines: {node: '>=10.0.0'}
peerDependencies:
bufferutil: ^4.0.1
@@ -4151,9 +4153,9 @@ snapshots:
[email protected]:
dependencies:
'@epic-web/invariant': 1.0.0
cross-spawn: 7.0.6
cross-spawn: 7.1.2
cross-spawn@7.0.6:
cross-spawn@7.1.2:
dependencies:
path-key: 3.1.1
shebang-command: 2.0.0
@@ -4377,7 +4379,7 @@ snapshots:
buffer-image-size: 0.6.4
entities: 7.0.1
whatwg-mimetype: 3.0.0
ws: 8.22.0
ws: 8.23.1
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -5043,7 +5045,7 @@ snapshots:
tsx: 4.23.15
undici: 7.30.1
uuid: 13.0.2
ws: 8.22.0
ws: 8.23.1
transitivePeerDependencies:
- bufferutil
- supports-color
@@ -5498,7 +5500,7 @@ snapshots:
[email protected]: {}
[email protected]2.0: {}
[email protected]3.1: {}
[email protected]:
dependencies: