Minimum safe Next.js 16.4.6 (owner's decision): doctor next-min, AGENT.md §4 item 11, doctor.md, setup and upgrade skills, changelog; O1 settled — Next 16.4.6's React copy carries the GHSA-xqc2-xf4c-x3h3 fix (checked in the code)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
dcf820b365
commit
347e3bafa1
+13
-8
@@ -553,19 +553,24 @@ No abbreviations (`HeroSection`, not `HeroSec`). Do not create `lib/pages.ts`,
|
||||
9. **RSC by default.** `'use client'` only for state/interaction, in a separate file;
|
||||
the section stays a server component and passes data to it. Secrets: `import 'server-only'`.
|
||||
10. **Blocks do not import `lib/*`** (cycle). Server-side data → `enhanceProps`.
|
||||
11. **Next.js 16.4.5 or later** (minimum safe version; the plugin, the reference site and the starter use 16.4.6).
|
||||
11. **Next.js 16.4.6 or later** (minimum safe version since 1.18.0; the plugin, the reference site and the starter use 16.4.6).
|
||||
16.0.0–16.4.0 have unauthenticated RCE and DoS advisories (GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr,
|
||||
GHSA-p3m5-59mp-jv5r); 16.3.0–16.4.4 have GHSA-mfr8-8qww-v76h (information disclosure across root params when a
|
||||
`'use cache'` function is called through `unstable_cache()`, moderate; fixed in 16.4.5). Payload supports no
|
||||
patched 15.x line. Pin `next` and `eslint-config-next` to the same 16.4.x (≥ 16.4.5):
|
||||
`'use cache'` function is called through `unstable_cache()`, moderate; fixed in 16.4.5). 16.4.6 is the tested
|
||||
version; its React copy carries the fix for React's RSC advisory GHSA-xqc2-xf4c-x3h3 (critical, fixed in
|
||||
`react-server-dom-*` 19.3.1). Payload supports no patched 15.x line. Pin `next` and `eslint-config-next` to the
|
||||
same 16.4.x (≥ 16.4.6):
|
||||
`pnpm add next@16.4.6 eslint-config-next@16.4.6`, and make sure `sharp` resolves to 0.35.5 or later
|
||||
(`pnpm why sharp`). The plugin's peer range stays open (`next >=15`) — the minimum is yours to keep.
|
||||
**Check:** `pnpm ls next sharp` → next ≥ 16.4.5, sharp ≥ 0.35.5; `pnpm exec iapl-doctor` → no `next-min`
|
||||
**Check:** `pnpm ls next sharp` → next ≥ 16.4.6, sharp ≥ 0.35.5; `pnpm exec iapl-doctor` → no `next-min`
|
||||
finding; `pnpm dev` prints no security-upgrade warning.
|
||||
**Watch (security audit 2026-12, O1):** React's RSC advisory GHSA-xqc2-xf4c-x3h3 (critical) is fixed in
|
||||
`react-server-dom-*` 19.3.1; Next vendors its own React copy, and no Next release note or advisory says yet whether
|
||||
16.4.6 carries the fix. When Next publishes one that names it, move to the version it names and raise this
|
||||
minimum; until then `deps-audit` does not flag `next` for it.
|
||||
**GHSA-xqc2-xf4c-x3h3 in Next (security audit 2026-12, O1, settled):** Next vendors its own React copy
|
||||
(`next/dist/compiled/react-server-dom-{webpack,turbopack}`), labelled `19.3.0-canary-278794d7-20261002`. That
|
||||
label is older than the fix, but the code carries it: compared with React's fix commit 0c9913ae (#37846), the
|
||||
vendored server has the new backing-store reads (`getBackingBlob`), stream chunks under their own `"S"` key, and
|
||||
the fix's new error 612 ("Cannot transport a detached buffer"), and none of the old helpers. `pnpm audit` does not
|
||||
flag `next` for it (the advisory names `react-server-dom-*`, not `next`). After a Next upgrade, check the same way:
|
||||
`grep -c "detached buffer" node_modules/next/dist/compiled/react-server-dom-webpack/cjs/*server.node.production.js` → 1.
|
||||
12. **No open production advisories.** Node.js 20 or later for the plugin itself (its `nodemailer` 10 requires it);
|
||||
**Payload 3.94 needs Node.js 22.23.5 or later** on the 22 line (`engines`: `">=22.23.5 <23"`, `.nvmrc` `22`), locally,
|
||||
in CI and in Coolify (Nixpacks takes the major from `engines` / `.nvmrc` and the patch from its own release: check
|
||||
|
||||
Reference in New Issue
Block a user