← 漏洞与更新

版本发布Next.jsJavaScript / Node.js

November 2026 Security Release

VulnPulse 解读

Next.js 16.4.5 and 15.5.29 fix seven flaws, most of them caches serving one tenant's or user's content to another

On November 3 the Next.js team shipped 16.4.5 and 15.5.29 to fix seven vulnerabilities. More than half come from how Cache Components (use cache) builds cache keys, which can let content made for one user or tenant be returned to someone else.

目录
  1. 受影响对象
  2. 简单来说
  3. 原理
  4. 攻击过程
  5. 应对措施
  6. 尚不清楚的内容
  7. 出处

受影响对象

Teams that build or run apps on Next.js. Going by the version ranges in the GitHub advisories, the 16.x line can be hit by all seven. Only three list 15.x as affected: the Edge-route cookie issue, the image optimizer SVG issue, and the one about passing a fetched response straight through. The four cache issues only matter for apps using Cache Components or use cache. The SVG issue, the fetched-response issue and one of the cache issues assume a self-hosted deployment.

简单来说

Picture a kitchen that labels pre-made lunch boxes by part of the order instead of by who ordered it. Under the right timing, a box packed for one customer lands on another customer's shelf and keeps being handed out until someone clears it.

原理

A cache finds stored results by a key that should describe exactly which inputs produced them. The four cache issues are cases where part of that key goes missing or different inputs end up with the same key. Two are timing problems where an entry is saved before its root params (the root layout's route parameters, often used to separate tenants or locales) have been recorded in the key. One is that binary arguments such as a Uint8Array can map different values to the same key. The last lets a single crafted URL write request-specific values, or a 404, into a page shell that many URLs share. Of the other three: on Edge routes, setting a cookie also copies its value into an internal response header that same-origin JavaScript can read, even for HttpOnly cookies; passing a fetched response through unchanged can leave its framing headers out of step with the body, which can mix up responses between clients when an HTTP/1.1 reverse proxy sits in front; and an image disguised as AVIF can get past the setting that blocks SVG.

攻击过程

  1. Shared shell issue: without logging in, an attacker sends one crafted URL to a route that matches the conditions
  2. The server renders a layout with a value from that request and stores the result as a shell that many URLs share
  3. Visitors to pages that use that shell then get altered content or a 404; the advisory says a stored 404 even survives a server restart
  4. In the cache-key issues (timing and binary arguments), the attacker does not necessarily pick the content; whoever's result is stored first can be served to others, which is how data leaks

应对措施

  • Developers on Next.js: move 16.x apps to 16.4.5 and 15.x apps to 15.5.29. These are the two fixed releases named in the announcement
  • If you cannot upgrade right away: for the shared shell issue, the advisory's workaround is setting partialPrefetching to true in next.config. For the unstable_cache issue, the advisory says not nesting a use cache function inside unstable_cache avoids it
  • Operators who split tenants or locales by root params: the advisory says wrongly stored entries stay until they are revalidated or evicted, so after upgrading, also decide what to do with entries already in the cache
  • Self-hosted apps that relay fetched responses unchanged and sit behind a proxy speaking HTTP/1.1: upgrade first

尚不清楚的内容

  • The severity labels disagree. The Next.js post calls the unstable_cache plus use cache issue High, while its GitHub advisory (GHSA-mfr8-8qww-v76h) rates it Medium at CVSS v4 6.3. All seven advisories are rated Medium, between 6.0 and 6.9
  • The patched-version fields in most advisories are empty, and one says 16.4.2, which does not match the 16.4.5 in the announcement. This explainer follows the announcement for fixed versions
  • The advisory for the fetched-response issue also lists versions below 16.0.0, but the announcement only names 15.5.29 and 16.4.5; no fix is offered for lines older than 15
  • As of November 6, neither the announcement nor the advisories mention exploitation in the wild

出处

本解读由 VulnPulse 根据原文和公开信息以自己的语言撰写。准确信息请以出处为准。 更新:

原始公告 (原文)

The November 2026 security release for Next.js is now available

在 Next.js Blog 阅读

2026/11/04 03:00,Next.js Blog 发布了“November 2026 Security Release”(类型:版本发布)。相关技术:Next.js、JavaScript / Node.js。