Skip to content

Update Next.js to 15.5.29 for its security fixes - #983

Merged
richshaw merged 2 commits into
mainfrom
claude/affectionate-dijkstra-m7whs0
Nov 15, 2026
Merged

richshaw merged 2 commits into
mainfrom
claude/affectionate-dijkstra-m7whs0

Conversation

@richshaw

Copy link
Copy Markdown
Owner

What

Moves next from 15.5.28 to 15.5.29, the latest 15.5 patch (published 3 November). It fixes three moderate advisories:

Advisory Applies here?
GHSA-f3mh-rxg3-f5g2: HttpOnly cookie exposed through an internal response header on Edge runtime routes Yes. src/middleware.ts runs on Edge for /app/*, and the Auth.js session cookie is HttpOnly.
GHSA-pc58-hwjq-p385: cross-client response injection when a self-hosted app forwards fetched responses Possibly. Self-hosted, output: 'standalone'.
GHSA-7qx7-33qx-rqx2: SVG rejection bypass in the image optimizer No. images.unoptimized is on.

The lockfile diff covers only next and its @next/* packages.

Budget

The patch adds about 0.1 kB of framework code to every page. I built main and this branch and compared the pnpm budgets tables. /s/[slug]/c/[id] was already right at its cap (110.0 kB against 110), so it moves to 110.1 kB. Its budget goes from 110 to 111 because the framework grew, not because of app code. Every other page still fits within its current budget.

Checks run on this branch

  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: all pass (2362 unit tests)
  • pnpm test:db: 680 pass, query-budget test included
  • pnpm build && pnpm budgets: pass
  • Playwright e2e (chromium) against the production build: 105/105 pass
  • Production server, by hand: a signed-out GET /app?tab=x returns 307 to /login?callbackUrl=%2Fapp%3Ftab%3Dx. The response has no x-middleware-* header and no cookie in it, even when the request carries a session cookie. Security headers (CSP, HSTS, X-Frame-Options) are unchanged.

Not in this PR

pnpm audit --prod also reports:

  • zod < 4.6.6: memory use when validating huge arrays. The fix is a zod 4 migration, which is far from small. Every JSON body is already capped at 1 MB by readJson and the MCP route, which limits what this advisory can do here.
  • deepmerge (low severity, through @react-email/render > html-to-text): no patched version exists, and it only ever handles our own email templates.

Generated by Claude Code

15.5.29 patches three moderate advisories. The one that applies here is
GHSA-f3mh-rxg3-f5g2: an HttpOnly cookie could be exposed through an internal
response header on Edge runtime routes. The /app middleware runs on Edge and
the Auth.js session cookie is HttpOnly. The other two (forwarded fetch
responses, SVG handling in the image optimizer) don't reach this app, since
the optimizer is off.

The patch adds about 0.1 kB to every page, which takes /s/[slug]/c/[id] from
110.0 to 110.1 kB, so its budget goes from 110 to 111.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SSp8A6Uv3Fh2JknsDe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SSp8A6Uv3Fh2JknsDe
@richshaw
richshaw merged commit bedb6a5 into main Nov 15, 2026
5 checks passed
@richshaw
richshaw deleted the claude/affectionate-dijkstra-m7whs0 branch November 15, 2026 16:21
richshaw pushed a commit that referenced this pull request Nov 15, 2026
budgets.json conflicted with main's Next.js update (#983), which raised
/s/[slug]/c/[id] from 110 to 111. This PR had already raised that line and
the two beside it, so the PR's numbers are kept; main's other lines are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
richshaw pushed a commit that referenced this pull request Nov 15, 2026
main's Next.js update (#983) adds about 0.1 kB to every page. With this
PR's messages on top, /s/[slug]/c/[id] now loads 113,846 B (gzip), over its
113.8 kB budget, so the budget goes to 113.9 kB, the measured figure rounded
up. Pre-approved by the owner for the Next.js update. The other three pages
this PR budgets still fit their numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
richshaw pushed a commit that referenced this pull request Nov 15, 2026
main's Next.js update (#983) adds about 0.1 kB to every page. With this
PR's changes on top, /s/[slug]/c/[id] now loads 113,633 B (gzip), over its
113.6 kB budget, so the budget goes to 113.7 kB, the measured figure rounded
up. Pre-approved by the owner for the Next.js update. The other three pages
this PR budgets still fit their numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
richshaw pushed a commit that referenced this pull request Nov 16, 2026
main's Next.js update (#983) adds about 0.1 kB to every page. With this
PR's changes on top, /s/[slug]/c/[id] now loads 113,564 B (gzip), over its
113.5 kB budget, so the budget goes to 113.6 kB, the measured figure rounded
up. Pre-approved by the owner for the Next.js update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
richshaw pushed a commit that referenced this pull request Nov 16, 2026
main moved on by 62 commits since this branch was built: the whole
localization stack (#897 to #999) plus #806, #890, #983 and #984.

Files main added in folders this branch moved now sit in the route groups:
eleven under src/app/(organizer)/app/(chrome)/, six under
src/app/(organizer)/login/ and one under src/app/(organizer)/oauth/.
main's footer `locale` on src/app/s/layout.tsx moves into
src/app/s/[slug]/layout.tsx, which absorbed it, and the global 404 passes
one too. CHANGELOG.md keeps both sides' entries, CLAUDE.md the new consent
paths and main's Languages line, and a11y.spec.ts both new tests.

The lint rule lists in eslint.config.mjs, the file list in
no-hard-coded-text.test.ts, two test imports and two comments now name the
new paths. The signup page's metadata test expects the tab title the page
writes itself (`title.absolute`), as it does on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants