Next.js 漏洞与安全更新
118 条
12月3日周四
Next.js 16.5
Next.js 16.5 brings faster Turbopack builds, cross-deployment caching, Go Route Handlers, and more.
Native Languages in Next.js
Next.js 16.5 introduces experimental Go support with route.go, alongside the first phase of rewriting the next start server in Go.
12月2日周三
แจ้งเตือน! พบแคมเปญ React2Keys ใช้ช่องโหว่ React2Shell โจมตีเซิร์ฟเวอร์ ขโมยข้อมูลรับรองการเข้าถึงระบบกว่า 50,000 รายการ ส่งผลกระทบต่อระบบที่ใช้ React Server Components และ Next.js
ศูนย์ประสานการรักษาความมั่นคงปลอดภัยระบบคอมพิวเตอร์แห่ง…
Upcoming Next.js December Security Release
Next.js is preparing a scheduled December security release for December 15, 2026.
11月20日周五
Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes
受影响: npm:next >= 15.0.0, <= 15.5.28 → 15.5.29, npm:next >= 16.0.0, <= 16.4.4 → 16.4.5 Next.js applications that set cookies through NextResponse on Edge runtime routes — App Router route handlers and Pages Router Edge API routes — send an internal x-middleware-set-cookie header in the public response, duplicating the cookie value and its attributes. This makes HttpOnly cookies, such as session tokens, readable by JavaScript running on the same origin when an application sets a sensitive cookie on an affected response.
Next.js: SVG rejection bypass in the image optimization
受影响: npm:next >= 15.0.0, <= 15.5.28 → 15.5.29, npm:next >= 16.0.0, <= 16.4.4 → 16.4.5 On self-hosted deployments, the Next.js image optimizer (/_next/image) can be made to process an attacker-supplied SVG even when SVG support is disabled with dangerouslyAllowSVG: false (the default). This reaches an SVG parser the application intended to keep disabled, increasing exposure to denial of service and SVG decoder vulnerabilities.
Next.js: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responses
受影响: npm:next >= 16.0.0, <= 16.4.4 → 16.4.5, npm:next <= 15.5.28 → 15.5.29 Self-hosted Next.js applications (App Router route handlers and the fetch cache) that return a fetched upstream response unchanged can emit a response whose declared framing does not match the body actually sent. When such an application sits behind an HTTP/1.1 reverse proxy that permits pipelined response queueing, a crafted upstream response can desynchronize responses between clients, enabling response injection and disclosure of other clients' responses.
Next.js: Cross-user cache disclosure and poisoning in Next.js use cache with binary arguments
受影响: npm:next >= 16.0.0, <= 16.4.4 → 16.4.5 Next.js App Router applications that pass binary arguments (such as Uint8Array or Blob values) to functions using the use cache directive can produce identical cache keys for distinct arguments, allowing cached results to be shared across users — cross-user disclosure of cached data or cache poisoning. This affects applications using use cache with binary arguments.
Next.js: Cache poisoning of shared fallback shells in Cache Components via request-supplied placeholder route params
受影响: npm:next >= 16.4.0, <= 16.4.4 → 16.4.5 Self-hosted Next.js applications served with next start and built with cacheComponents: true but without Partial Prefetching accept a request-supplied route param value as a prerender placeholder. One unauthenticated GET request can poison the fallback shell cache entry that a family of routes shares. Such a route is served from a shell that keeps its never-prerenderable params as placeholders, so every value of those params shares one cache entry. A path segment equal to the percent-encoded, b…
11月18日周三
How we're using AI to make Next.js more secure
Why you're seeing more Next.js security advisories, and what we're doing about it.
Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata
受影响: npm:next >= 16.2.0, <= 16.4.4 → 16.4.5 With Cache Components enabled, an outer 'use cache' function can be keyed incorrectly even when its inner 'use cache' call generates a fresh entry. If the inner function reads a root param (via next/root-params) and returns a value that still contains pending promises — for example an object with data that is ready immediately alongside slower data — React Flight delivers the ready portion to the outer function before the inner entry has finished publishing its root param dependencies. The oute…
11月17日周二
Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()
受影响: npm:next >= 16.3.0, <= 16.4.4 → 16.4.5 Next.js applications with 'use cache' can disclose cached data across root params when the same 'use cache' function is called both directly during rendering and through unstable_cache(), and that function reads a root param. Root params are route parameters of the root layout, and applications commonly use them to scope data, for example per locale. During a cold process start, a cross-request deduplication race allowed an unstable_cache() call to join the in-flight fill of a concurrent direct…
11月4日周三
November 2026 Security Release
The November 2026 security release for Next.js is now available
10月29日周四
Ship less JavaScript in Next.js with your AI agent
Optimize your Next.js app's bundles with the next-bundle-optimizer agent skill, or explore them yourself with new Bundle Analyzer tools.
10月28日周三
Upcoming Next.js November Security Release
Next.js is preparing a scheduled November security release for November 3, 2026.
10月23日周五
Next.js: Unauthenticated Remote Code Execution in `use cache` functions returning typed arrays
受影响: npm:next >= 16.0.0, <= 16.4.0 → 16.4.1 A vulnerability in applications using App router with Cache Component can lead to remote code execution. The application needs to have a use cache function that returns multiple typed arrays. Workaround There is no known workaround for affected applications with such use cache functions. You should upgrade immediately even if your application does not have similar functions.
next.js cache leak across root param values in nested 'use cache' functions
受影响: npm:next >= 16.3.0, < 16.3.8 → 16.3.8 With Cache Components enabled (cacheComponents: true), a 'use cache' function that calls another 'use cache' function that reads a root param can be keyed incorrectly when the inner call is served from an existing entry: the enclosing function's cache key then omits that root param. The enclosing entry is written once and reused for all root param values, so a response for one root param value can serve content produced for a different value — whether the page is prerendered at build time or at…
Sentry-Javascript: Middleware Bypass when using Tunnel route
受影响: npm:@sentry/nextjs >= 9.36.0, < 9.47.2 → 9.47.2, npm:@sentry/nextjs >= 10.0.0-alpha.0, < 10.75.2 → 10.75.2, npm:@sentry/nextjs >= 11.0.0-alpha.0, < 11.0.0-rc.1 → 11.0.0-rc.1 The tunnelRoute option makes the SDK send browser events to a path on your own Next.js server (for example /monitoring), where a rewrite forwards them to Sentry to prevent ad blockers from blocking them. To keep those envelope requests from being rejected by your middleware, the SDK skips middleware for them. The middleware skip was wider than the rewrite. The rewrite only serves requests to the tunnel path itself with the o and p parameters set. The skip applied to anything under the tunnel pa…
Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used
受影响: npm:next >= 10.0.0, <= 15.5.27 → 15.5.28, npm:next >= 16.0.0, <= 16.4.0 → 16.4.1 A memory-related vulnerability has been discovered in an upstream library used for Image Optimization can lead to possible remote code execution (RCE) when Next.js runs on glibc-based Linux. Workaround Ensure the version of sharp used by Next.js is greater than or equal to 0.35.5. Fresh installs automatically get a fixed version of sharp. Upgrading Next.js to the patched versions will ensure package managers automatically provide a fixed version of sharp to Next.js.
Next.js: Denial of Service in App Router using Server Actions
受影响: npm:next >= 13.0.0, <= 15.5.27 → 15.5.28, npm:next >= 16.0.0, <= 16.4.0 → 16.4.1 Crafted requests targeting Next.js applications using App Router with at least one Server Action can lead to excessive CPU usage blocking processing of further requests in the same process. Workarounds No workaround exists besides upgrading. Applications using Pages Router or not using Server Actions are not vulnerable.
10月21日周三
Weekly Report: Next.jsに複数の脆弱性
Next.jsに複数の脆弱性
10月17日周六
Improving navigation experience in v0 with Next.js 16.4
How we used Partial Prefetching and a coding agent to improve navigation across v0 with Next.js 16.4.
10月15日周四
Next.js Security Update for Upstream Vulnerabilities
The October 14, 2026 out-of-band security update for Next.js is now available
10月9日周五
Upcoming Next.js Security Update for Upstream Vulnerabilities
Next.js plans to publish an out-of-band security update next Wednesday, October 14, 2026, addressing two Critical and one High severity vulnerabilities in upstream dependencies.
10月7日周三
Next.js 16.4
Next.js 16.4 introduces lazy compilation, smaller Turbopack output, React 19.3 features, Cache Components improvements, and new developer tooling.
10月1日周四
September 2026 Security Release
The September 2026 security release for Next.js is now available
9月24日周四
Upcoming Next.js September Security Release
Next.js is preparing a scheduled September security release for September 30, 2026.
9月23日周三
Next.js Security Update for a Critical Upstream Issue
The September 22, 2026 out-of-band security update for Next.js is now available
Upcoming Next.js Security Update for a Critical Upstream Issue
Next.js 16.3.6 and 15.5.26 are planned for a critical out-of-band security update on September 22, 2026.
9月4日周五
How we closed 1,500 GitHub issues in one month
How the Next.js team used an agent to research old reports and work through the issue backlog.
How Turbopack chunks your JavaScript
Turbopack’s chunking speeds up page loads and enables sharing code across pages. We shipped new experimental features to improve chunking in Next.js 16.3.
8月26日周三
August 2026 Security Release
The August 2026 security release for Next.js is now available
Update: August Next.js Security Release
Next.js is moving the August security release forward to August 25, 2026.
8月21日周五
Upcoming Next.js August Security Release
Next.js is preparing a scheduled August security release for August 26, 2026.
8月19日周三
Building App-like Experiences with Next.js 16.3
Build app-like experiences with Instant Navigations, server-rendered data, optimistic updates, and live client state in Next.js 16.3.
8月6日周四
Making Navigations Instant in v0
The case study behind Instant Navigations in Next.js 16.3, and how we made v0's navigations instant using tests and a coding agent.
8月4日周二
Next.js 16.3
Next.js 16.3 introduces Instant Navigations, a suite of tools for single-page-app responsiveness, plus a faster dev server, faster builds, and improved tooling for AI agents.
7月29日周三
Deploy Next.js and Nuxt apps on Laravel Cloud
Deploy your Next.js or Nuxt frontend alongside your Laravel app on Laravel Cloud: one platform, one deploy workflow, one bill.
7月20日周一
July 2026 Security Release
The July 2026 security release for Next.js is now available
7月13日周一
Next.js Security Release and Our Next Patch Release
Next.js is moving to a formal security release process
6月30日周二
Turbopack: What's New in Next.js 16.3
Turbopack in Next.js 16.3 adds development memory eviction, persistent file cache for builds, experimental Rust React Compiler, and `import.meta.glob` support.
6月27日周六
Next.js 16.3: AI Improvements
Actionable errors with paste-ready fix prompts, first-party Skills for the dev loop and Cache Components, and tooling that keeps coding agents in sync with your project.
6月26日周五
Next.js 16.3: Instant Navigations
A new suite of tools that brings the responsiveness of a single-page app to the server-centric model of Next.js.
4月30日周四
UAT-10608大規模自動化竊密行動:鎖定React2Shell漏洞入侵逾700台Next.js伺服器
思科旗下資安威脅情報與研究團隊 Cisco Talos 近日揭露,一個被追蹤為「UAT-10608」的威脅叢集,正針對暴露於網路的Next.js應用程式發動大規模自動化憑證竊取行動。該組織利用去年底備受關注的 React2Shell 漏洞(CVE-2025-55182),結合名為「NEXUS Listener」的自動化資料蒐集框架,在短時間內入侵全球至少766台主機,影響範圍橫跨多個地區與雲端服務供應商。 React2Shell(CVE-2025-55182)為一項高風險 RCE 漏洞,允許未經驗證的遠端攻擊者,在缺乏適當輸入驗證和處理的應用程式環境中執行任意程式碼,影響 React 與 Next.js 等主流前端框架。報告指出,UAT-10608 的攻擊具高度系統化特徵,先透過 Shodan、Censys 或自訂掃描器大規模探測暴露於公開網路的 Next.js環境;確認存在漏洞後,即向 Server Function 端點發送惡意序列化酬載,於伺服器端 Node.js 程序中執行任意程式碼。 取得初始存取權限後,攻擊者會在系統 /tmp 目錄下植入隨機命名的 Shell 指令碼,並透過 nohup 指令執行,展開自動化資料蒐集。竊取內容涵蓋帳號憑證(如 SSH 金鑰與各類存取令牌)、雲端與容器環境資訊(如 Kubernetes 與雲端 metadata)、系統環境參數(如環境變…
3月26日周四
Next.js Across Platforms: Adapters, OpenNext, and Our Commitments
Next.js 16.2 introduces a stable Adapter API, a public adapter test suite, and a working group for more consistent deployment across platforms.
3月19日周四
Next.js 16.2
Next.js 16.2 includes Adapters, rendering performance improvements, improved debugging and error pages, and more.
Turbopack: What's New in Next.js 16.2
Turbopack in Next.js 16.2 brings faster builds, SRI support, postcss.config.ts, tree shaking of dynamic imports, Server Fast Refresh, inline loader configuration, and over 200 bug fixes.
Next.js 16.2: AI Improvements
Next.js 16.2 ships AGENTS.md in create-next-app, browser log forwarding, dev server lock file with PID, and next-browser for AI agent debugging.
2月12日周四
Building Next.js for an agentic future
How we built and sunset an in-browser agent, shipped MCP integration, and learned that better AI agent support means thinking from the agent's perspective.
1月21日周三
Inside Turbopack: Building Faster by Building Less
Learn how we built Turbopack with incremental computation to scale development and builds to massive Next.js applications.