Repository navigation
fix(security): upgrade Next.js to 15.5.24+ and sharp to 0.35.4+ (dashboard) - #754
Merged
Merged
Conversation
Constrain Next.js to ^15.5.24 and override sharp to ^0.35.4. Refresh the pnpm 9 lockfile to Next.js 15.5.27 and sharp 0.35.5 to address Server Actions DoS and image optimization advisories. Preserve the customer-facing telemetry-next peer dependency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The production App Router dashboard currently resolves Next.js 15.5.18 and sharp 0.34.5. Upgrade the dashboard dependency and root override to
^15.5.24, add sharp override^0.35.4, and refresh the pnpm 9 lockfile. The resolved versions are Next 15.5.18 → 15.5.27 and sharp 0.34.5 → 0.35.5 (before: original lockfile; after: recursive pnpm why). Caret bounds keep Next on 15.x.packages/telemetry-next/package.jsonretains its customer-facingnext: ">=14"peer dependency unchanged.Server Actions DoS (CVE-2026-64641) is confirmed reachable: App Router has public unauthenticated Server Actions, including auth/contact/marketing. AVIF Image Optimization RCE is likely unreachable: no remotePatterns and avatar uploads are magic-byte restricted to JPEG/PNG/WebP; upgrade is defense in depth. Windows RCE (CVE-2026-75604) is not applicable to Railway's Linux runtime, but protects Windows self-hosters.
Advisories (sanity-checked against GitHub's advisory API on 2026-10-09; ranges below are the relevant pre-16 branch):
>= 13.0.0, < 15.5.21; first patched version15.5.21.>= 10.0.0, < 15.5.24; first patched version15.5.24.>= 13.4.0, < 15.5.24; first patched version15.5.24.>= 12.0.0, < 15.5.21; first patched version15.5.21.>= 14.1.1, < 15.5.21; first patched version15.5.21.>= 13.0.0, < 15.5.21; first patched version15.5.21.>= 13.0.0, < 15.5.21; first patched version15.5.21.>= 13.0.0, < 15.5.21; first patched version15.5.21.>= 13.0.0, < 15.5.21; first patched version15.5.21.>= 15.5.0, < 15.5.21; first patched version15.5.21.< 0.35.4; first patched version0.35.4.< 0.35.0; first patched version0.35.0.Validation used
corepack pnpm(pnpm 9.15.9), Node 24.10.0 on macOS. Production remains node:20-slim Linux; no Docker/Linux build was run here. Registry metadata confirms Next supports sharp^0.34.3 || ^0.35.3, and sharp requires Node >=20.9.0.corepack pnpm install: passed. Removed an unrelated browserslist snapshot deduplication; no unrelated package versions upgraded.corepack pnpm install --frozen-lockfile: passed, including after restoring final files following baseline checks.corepack pnpm why -r nextandcorepack pnpm why -r sharp: every Next resolution is 15.5.27 (>=15.5.24, <16), every sharp resolution is 0.35.5 (>=0.35.4).corepack pnpm lint: passed, zero warnings/errors.corepack pnpm build: passed for all seven workspace projects, including TypeScript SDK/API compilation and dashboard production type validation. Dashboard log: Next.js 15.5.27; 56/56 static pages generated. Repeated successfully after baseline checks.corepack pnpm test: passed, 1,411 tests passed, 128 skipped, zero failed. Vitest: 185 files passed, 18 skipped; publish guards: 10 suites passed.corepack pnpm --filter dashboard exec tsc --noEmit: exits 2 with six pre-existing errors: four TS2540 errors assigning readonly NODE_ENV inlib/google-analytics.test.ts(22, 30, 37, 46), two TS1501 errors for regex flags with ES2017 target inlib/marketing-seo-head.test.ts(13, 14). Next production build type validation passes.origin/developusing read-onlygit show, installed its frozen lockfile, rancorepack pnpm --filter api test(same 1,044 passed / 128 skipped),corepack pnpm --filter dashboard exec tsc --noEmit(identical six errors), andcorepack pnpm --filter dashboard build(passed, Next 15.5.18). Restored final dependency files and reinstalled/rebuilt. No git metadata was changed.corepack pnpm --filter dashboard start --port 3107;curl -sI http://localhost:3107/and/contactboth returned 200. For/_next/image?url=%2Fog-banner.png&w=640&q=75, first cold-cachecurl -sIreturned 400 with “internal image response is empty”; GET (curl -s -o /tmp/sec-next-final-image.bin -w '%{http_code}\n' 'http://localhost:3107/_next/image?url=%2Fog-banner.png&w=640&q=75') returned 200, and subsequent HEAD returned 200. Reproduced the same cold-cache HEAD 400 / GET 200 behavior using baseline Next 15.5.18 and its production build with the image cache moved aside. Final smoke: homepage/contact HEAD 200, image GET 200 and warm HEAD 200. Local servers stopped.git diff origin/develop...is empty because HEAD equals origin/develop; reviewed the uncommitted changes withgit diff origin/developandgit diff --check(passed). Only the three intended dependency files remain changed. Restored the install/build-generated API version comment; no generated output is included.The 128 skipped API tests are gated by existing
RUN_DB_INTEGRATION_TESTS/RUN_BRIEF_INTEGRATION_TESTSflags, with the same skips on origin/develop. DB-backed integration tests are to be verified by CI with its Postgres service; they were not enabled locally. No tests were weakened. Existing Sentry navigation-hook and webpack/browserslist notices remain outside scope.Production deploy happens only via the normal release workflow after review. API on Railway installs with unlocked
npm installand is not affected by this PR. No merge, deployment, package publishing, production data access, branch creation, commit, push, or PR mutation was performed. Runner should create a non-draft PR against develop;gh pr list --head codex/security-next-15-5-24 --state allfound none.