Next.js 16.4.6; minimum safe version 16.4.5 (GHSA-mfr8-8qww-v76h)
Next.js 16.3.0–16.4.4 is affected by GHSA-mfr8-8qww-v76h (CVE-2026-119790, moderate: information disclosure across root params when a 'use cache' function is called through unstable_cache()), first patched in 16.4.5. - next and eslint-config-next 16.4.6 in the plugin's dev dependencies and the reference site (the starter is generated from it); lockfiles refreshed. - ipal-doctor next-min: error below 16.4.5, naming the advisory; fix `pnpm add [email protected] [email protected]`; still silenceable. Tests. - AGENT.md §4 item 11, ipal-setup, ipal-upgrade, doctor.md: minimum 16.4.5; reference skills copy refreshed. CHANGELOG Unreleased. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ba3d57a77a
commit
9b03c94979
@@ -3,6 +3,10 @@ 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 version the plugin, the reference site and the starter use. */
|
||||
export const NEXT_RECOMMENDED = '16.4.6'
|
||||
|
||||
export const versionRules: DoctorRule[] = [
|
||||
{
|
||||
@@ -26,7 +30,13 @@ export const versionRules: DoctorRule[] = [
|
||||
const out: RuleFinding[] = []
|
||||
const next = ctx.installed('next')
|
||||
if (!next) {return [{ fix: 'pnpm install', message: 'next is not installed', severity: 'error' }]}
|
||||
if (lt(next, '16.4.1')) {out.push({ fix: 'pnpm add [email protected] [email protected]', message: `next ${next} < 16.4.1 (RCE and DoS advisories)`, severity: 'error' })}
|
||||
// The minimum safe version and the advisories behind it (AGENT.md §4 item 11).
|
||||
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\''
|
||||
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')
|
||||
if (eslint && parseVersion(eslint)?.slice(0, 2).join('.') !== parseVersion(next)?.slice(0, 2).join('.')) {
|
||||
out.push({ fix: `pnpm add -D eslint-config-next@${next}`, message: `eslint-config-next ${eslint} is not on next's ${next}`, severity: 'warning' })
|
||||
|
||||
Reference in New Issue
Block a user