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:
Radosław Smoliński
2026-11-16 23:45:17 +01:00
co-authored by Claude Opus 5.5
parent ba3d57a77a
commit 9b03c94979
13 changed files with 234 additions and 185 deletions
+15 -2
View File
@@ -31,11 +31,11 @@ function project(files: Record<string, object | string>): string {
return root
}
const pkgJson = (extra: object = {}) => ({ name: 'examplepl-web', dependencies: { '@intecion/ipal-kit': '^1.14.6', next: '16.4.3', sharp: '0.35.5' }, engines: { node: '>=22 <23' }, packageManager: '[email protected]', ...extra })
const pkgJson = (extra: object = {}) => ({ name: 'examplepl-web', dependencies: { '@intecion/ipal-kit': '^1.14.6', next: '16.4.6', sharp: '0.35.5' }, engines: { node: '>=22 <23' }, packageManager: '[email protected]', ...extra })
const installed = (name: string, version: string) => ({ [`node_modules/${name}/package.json`]: { name, version } })
const base = () => ({
...installed('@intecion/ipal-kit', '1.14.6'),
...installed('next', '16.4.3'),
...installed('next', '16.4.6'),
...installed('sharp', '0.35.5'),
'.nvmrc': '22\n',
'package.json': pkgJson(),
@@ -120,6 +120,19 @@ describe('versions', () => {
'pnpm-pinned:info',
])
})
test('next-min: 16.4.1–16.4.4 is an error (GHSA-mfr8-8qww-v76h), 16.4.5 passes, and the rule can be silenced', async () => {
const at = (version: string) => project({ ...base(), ...installed('next', version), ...installed('eslint-config-next', version) })
const old = await doctor(at('16.4.3'), ['next-min'])
expect(rules(old)).toEqual(['next-min:error'])
expect(old.findings[0].message).toContain('GHSA-mfr8-8qww-v76h')
expect(old.findings[0].fix).toBe('pnpm add [email protected] [email protected]')
expect(rules(await doctor(at('16.4.4'), ['next-min']))).toEqual(['next-min:error'])
expect((await doctor(at('16.4.0'), ['next-min'])).findings[0].message).toContain('RCE and DoS')
expect(rules(await doctor(at('16.4.5'), ['next-min']))).toEqual([])
expect(rules(await doctor(at('16.5.0'), ['next-min']))).toEqual([])
const silenced = await doctor(at('16.4.3'), ['next-min'], { config: { rules: { 'next-min': { off: true, reason: 'upgrade booked' } } } })
expect(silenced.summary).toMatchObject({ error: 0, silenced: 1 })
})
test('file: / link: specs are not compared', async () => {
expect(rules(await doctor(project({ ...base(), 'package.json': pkgJson({ dependencies: { '@intecion/ipal-kit': 'file:..' } }) }), ['plugin-installed']))).toEqual([])
})