Skip to content

Upgrade Next.js in the docs app to 15.5.28 #533

Closed

Description

@uniqueg

Problem

The docs app (apps/documentation, Nextra 2) depends on next 14.2.35, which has 25 open security advisories (50 Dependabot alerts: each one for apps/documentation/package.json and package-lock.json), 4 of them critical. No 14.2.x release fixes any of them: 14.2.35 is the newest 14.2 release and lies inside every vulnerable range. All are fixed in next 15.5.28.

Dependabot PR #483 (next 15.5.28) fails Lint and both Test jobs: the build of the docs app fails with @next/font/google failed to run or is incorrectly configured, because the deprecated @next/font package doesn't work with Next.js 15 (replaced by the built-in next/font).

Reachability

The docs are a static export (output: 'export', images.unoptimized: true in apps/documentation/next.config.js). Both deployments serve only the static files: Read the Docs (.readthedocs.yaml copies apps/documentation/out) and the docs image (Dockerfile, nginx). No Next.js server runs in either, so none of the advisories apply to the deployed docs.

They can only matter for a contributor's local next dev (which listens on all interfaces). The app uses the Pages Router without middleware, rewrites, Server Actions, Server Components, i18n, CSP nonces or a custom server, so most advisories don't apply there either:

GHSA                 Severity  Topic                                   Deployed  next dev
GHSA-2464-fhr4-w9xw  critical  Image optimizer RCE (SVG)               no        unlikely (1)
GHSA-2xp9-vwfh-vxw4  critical  Image optimizer RCE (AVIF)              no        unlikely (1)
GHSA-p293-qw3h-jr36  critical  RCE on Windows-hosted servers           no        Windows only
GHSA-p3m5-59mp-jv5r  high      Server Actions DoS (App Router)         no        no
GHSA-m99w-x7hq-7vfj  high      Server Actions DoS (App Router)         no        no
GHSA-89xv-2m56-2m9x  high      Server Actions SSRF (custom servers)    no        no
GHSA-p9j2-gv94-2wf4  high      SSRF in rewrites                        no        no (no rewrites)
GHSA-36qx-fr4f-26g5  high      Middleware bypass (i18n)                no        no (no middleware)
GHSA-8h8q-6873-q5fj  high      Server Components DoS                   no        no
GHSA-q4gf-8mx6-v5v3  high      Server Components DoS                   no        no
GHSA-h25m-26qc-wcjf  high      RSC deserialization DoS                 no        no
GHSA-c4j6-fc7j-m34r  high      SSRF via WebSocket upgrades             no        possible (2)
GHSA-4c39-4ccg-62r3  medium    Server Action payload (Edge)            no        no
GHSA-955p-x3mx-jcvp  medium    Server Function endpoint disclosure     no        no
GHSA-68g3-v927-f742  medium    Cache confusion (request bodies)        no        no
GHSA-4633-3j49-mh5q  medium    Cache confusion (invalid UTF-8)         no        no
GHSA-ffhc-5mcf-pf4q  medium    XSS with CSP nonces (App Router)        no        no
GHSA-gx5p-jg67-6x7h  medium    XSS in beforeInteractive scripts        no        no (no untrusted input)
GHSA-wfc6-r584-vfw7  medium    RSC response cache poisoning            no        no
GHSA-h64f-5h5j-jqjh  medium    Image optimizer DoS                     no        unlikely (1)
GHSA-3x4c-7xq6-9pq8  medium    Image disk cache growth                 no        unlikely (1)
GHSA-9g9p-9gw9-jx7f  medium    Image optimizer remotePatterns DoS      no        no (no remotePatterns)
GHSA-ggv3-7p47-pfv8  medium    Request smuggling in rewrites           no        no (no rewrites)
GHSA-vfv6-92ff-j949  low       RSC cache-busting collisions            no        no
GHSA-3g8h-86w9-wvmq  low       Middleware redirect cache poisoning     no        no (no middleware)

(1) The app doesn't use the image optimizer (images.unoptimized: true), but the /_next/image endpoint of a running dev server wasn't tested.
(2) The dev server uses WebSocket upgrades for hot reloading; not verified either way.

So the risk is low (only a dev server reachable from untrusted networks), but the upgrade is cheap.

Fix

  • Upgrade next to 15.5.28 (^15.5.28). Nextra 2.13.4 and nextra-theme-docs declare next >=9.5.3 and @lit-labs/nextjs 13 || 14 || 15, so no Nextra migration is needed.
  • Replace @next/font/google with the built-in next/font/google and drop the @next/font dependency.
  • Next.js 15 regenerates next-env.d.ts with a triple-slash reference that fails linting; stop tracking the generated file and ignore it (as create-next-app does).
  • Check that the static export still builds (also with the Read the Docs base path) and renders.

This supersedes #483.

Activity

  1. added
    priority: medium
    status: in progress
    type: security
    workload: hours
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: in progresstype: securityworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions