Unverified Commit c692e952 authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

Bump next in upgrade eval fixtures for CVE-2026-94483 (#99838)

## Summary

Bumps `next` in three upgrade eval fixtures that were pinned to versions
affected by CVE-2026-94483 (Image Optimization SSRF via allow-listed
remote patterns; fixed in 16.3.8):

- `future-cache-components-nudge`: 16.3.5 → 16.4.0
- `future-cache-components-same-version`: 16.3.5 → 16.4.0
- `latest-same-major`: 16.2.12 → 16.3.8

A few things needed to be updated to match

- `latest/setup.ts` and `future/setup.ts` mock
`registry.npmjs.org/next/latest` with a hardcoded `target`. That target
is now 16.4.0 (the current `latest`), so the same-version scenarios
still sit on "latest" and the same-major scenario still has a newer
target in the same major.
- `latest-same-major` uses 16.3.8 rather than 16.4.0 because it has to
start below the target in the same major. 16.3.8 is the oldest patched
release; there is no patched 16.2.x.
- The `EVAL.ts` exact-version assertions are updated to match.

The `latest-cross-major`, `latest-nudge` and `future-cache-components`
scenarios now also upgrade to 16.4.0. Their starting versions are
unchanged.

Fixes VULN-16485
Fixes VULN-16486
Fixes VULN-16487

<!-- NEXT_JS_LLM -->
parent fce9c2fe
...@@ -25,7 +25,7 @@ test('leaves the Future policy and installed version unchanged', () => { ...@@ -25,7 +25,7 @@ test('leaves the Future policy and installed version unchanged', () => {
const manifest = JSON.parse(readFileSync('package.json', 'utf8')) const manifest = JSON.parse(readFileSync('package.json', 'utf8'))
const config = readFileSync('next.config.js', 'utf8') const config = readFileSync('next.config.js', 'utf8')
expect(manifest.dependencies.next).toBe('16.3.5') expect(manifest.dependencies.next).toBe('16.4.0')
expect(config).toMatch(/agentUpgrade\s*:\s*['"]experimental-future['"]/) expect(config).toMatch(/agentUpgrade\s*:\s*['"]experimental-future['"]/)
}) })
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"next": "16.3.5", "next": "16.4.0",
"react": "19.1.0", "react": "19.1.0",
"react-dom": "19.1.0" "react-dom": "19.1.0"
}, },
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"next": "16.3.5", "next": "16.4.0",
"react": "19.1.0", "react": "19.1.0",
"react-dom": "19.1.0" "react-dom": "19.1.0"
}, },
......
...@@ -7,7 +7,7 @@ const { target } = JSON.parse( ...@@ -7,7 +7,7 @@ const { target } = JSON.parse(
) as { target: string } ) as { target: string }
securityChecks( securityChecks(
'16.2.12', '16.3.8',
target, target,
(app) => { (app) => {
test('preserves request identity between visitors', async () => { test('preserves request identity between visitors', async () => {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"next": "16.2.12", "next": "16.3.8",
"react": "19.1.0", "react": "19.1.0",
"react-dom": "19.1.0" "react-dom": "19.1.0"
}, },
......
...@@ -7,15 +7,15 @@ export async function setupFuture(sandbox: Sandbox) { ...@@ -7,15 +7,15 @@ export async function setupFuture(sandbox: Sandbox) {
const scenarios: Record<string, { source: string; target: string }> = { const scenarios: Record<string, { source: string; target: string }> = {
'future-cache-components': { 'future-cache-components': {
source: '13.5.11', source: '13.5.11',
target: '16.3.5', target: '16.4.0',
}, },
'future-cache-components-same-version': { 'future-cache-components-same-version': {
source: '16.3.5', source: '16.4.0',
target: '16.3.5', target: '16.4.0',
}, },
'future-cache-components-nudge': { 'future-cache-components-nudge': {
source: '16.3.5', source: '16.4.0',
target: '16.3.5', target: '16.4.0',
}, },
} }
const scenario = fixture ? scenarios[fixture] : undefined const scenario = fixture ? scenarios[fixture] : undefined
......
...@@ -4,7 +4,7 @@ import { setupUpgradeScenario } from '../security/setup' ...@@ -4,7 +4,7 @@ import { setupUpgradeScenario } from '../security/setup'
export async function setupLatest(sandbox: Sandbox) { export async function setupLatest(sandbox: Sandbox) {
const fixture = process.env.NEXT_UPGRADE_EVAL_CASE const fixture = process.env.NEXT_UPGRADE_EVAL_CASE
const target = '16.3.5' const target = '16.4.0'
const scenarios: Record< const scenarios: Record<
string, string,
{ target: string; installedVersion: string | undefined } { target: string; installedVersion: string | undefined }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment