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:
Radosław Smoliński
2026-12-01 20:57:47 +01:00
co-authored by Claude Opus 5.5
parent dcf820b365
commit 347e3bafa1
9 changed files with 47 additions and 27 deletions
+8 -3
View File
@@ -3,8 +3,11 @@ import type { DoctorRule, RuleFinding } from '../types.js'
import { compareVersions, isSemverSpec, lt, parseVersion, run } from '../util.js'
const PKG = '@intecion/ipal-kit'
/** Lowest Next.js without a known advisory: 16.4.5 fixes GHSA-mfr8-8qww-v76h (16.3.0–16.4.4). */
export const NEXT_MIN_SAFE = '16.4.5'
/**
* The minimum the team keeps (1.18.0): 16.4.6, the version the plugin, the reference site and the starter are tested
* with; its React copy carries the GHSA-xqc2-xf4c-x3h3 fix. 16.4.5 fixed GHSA-mfr8-8qww-v76h (16.3.0–16.4.4).
*/
export const NEXT_MIN_SAFE = '16.4.6'
/** The version the plugin, the reference site and the starter use. */
export const NEXT_RECOMMENDED = '16.4.6'
@@ -57,7 +60,9 @@ export const versionRules: DoctorRule[] = [
if (lt(next, NEXT_MIN_SAFE)) {
const why = lt(next, '16.4.1')
? 'RCE and DoS advisories, and GHSA-mfr8-8qww-v76h'
: 'GHSA-mfr8-8qww-v76h: information disclosure across root params in \'use cache\''
: lt(next, '16.4.5')
? 'GHSA-mfr8-8qww-v76h: information disclosure across root params in \'use cache\''
: `below the minimum the team keeps; ${NEXT_MIN_SAFE} is the tested version, its React copy carries the GHSA-xqc2-xf4c-x3h3 fix`
out.push({ fix: `pnpm add next@${NEXT_RECOMMENDED} eslint-config-next@${NEXT_RECOMMENDED}`, message: `next ${next} < ${NEXT_MIN_SAFE} (${why})`, severity: 'error' })
}
const eslint = ctx.installed('eslint-config-next')