CVE-2026-45109

Next.js: Middleware / Proxy bypass in App Router applications via segment-prefetch routes

Published May 13, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Next.js is a React framework for building full-stack web applications. From 15.2.0 to before 15.5.18 and 16.2.6, it was found that the fix addressing CVE-2026-44575 did not apply to middleware.ts with Turbopack. This vulnerability is fixed in 15.5.18 and 16.2.6.

Analysis

AI-generated

Technical impact

A flaw in Next.js middleware handling when using Turbopack allows an attacker to bypass the intended request preprocessing logic. This can enable the execution of requests that should normally be blocked by authentication or proxy rules, leading to unauthorized data exposure or manipulation within the application. The weakness is classified as Authentication Bypass (CWE‑288, CWE‑358).

Affected Systems

Vulnerable versions are Next.js releases from 15.2.0 through 15.5.17 inclusive, and from 16.2.0 through 16.2.5 inclusive. The fix is applied in release 15.5.18 and 16.2.6. Applications built with these versions and configured to use Turbopack in middleware.ts are at risk.

Risk and Exploitability

The vulnerability has a CVSS score of 7.5, suggesting a high impact if exploited. The EPSS score is 0.00014 (< 1%), indicating a very low probability of exploitation in the wild. The absence of a KEV listing confirms that there are no publicly known exploits. Despite the low EPSS, the moderate–high severity and the identified authentication bypass (CWE‑288, CWE‑358) recommend a precautionary stance. Attackers would target segment-prefetch routes in App Router applications, and the likely vector is HTTP requests that trigger middleware processing. No special conditions or privilege are required beyond normal web traffic to exploit the bypass.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest secured releases of Next.js (15.5.18 or 16.2.6 and later) to apply the middleware bug fix.
  • Ensure that your application’s middleware.ts files no longer rely on Turbopack when processing segment-prefetch routes; replace with the updated logic shipped with the patched release or isolate the request path.
  • As a temporary measure, restrict access to the segment-prefetch routes by adding explicit authentication checks or disabling these routes until the patch is applied.

Generated by OpenCVE AI on June 3, 2026 at 14:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-26hh-7cqf-hhc6 Next.js has a Middleware / Proxy bypass in App Router applications via segment-prefetch routes - Incomplete Fix Follow-Up
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
First Time appeared Vercel
Vercel next.js
Vendors & Products Vercel
Vercel next.js
Type Values Removed Values Added
Description Next.js is a React framework for building full-stack web applications. From 15.2.0 to before 15.5.18 and 16.2.6, it was found that the fix addressing CVE-2026-44575 did not apply to middleware.ts with Turbopack. This vulnerability is fixed in 15.5.18 and 16.2.6.
Title Next.js: Middleware / Proxy bypass in App Router applications via segment-prefetch routes
Weaknesses CWE-288
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-288

    Authentication Bypass Using an Alternate Path or Channel

  • CWE-358

    Improperly Implemented Security Check for Standard

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 4, 2026, 3:31 AM
Reserved
May 8, 2026, 7:27 PM
Status
Modified
Published
May 13, 2026, 6:16 PM
Modified
Nov 4, 2026, 4:17 AM
Severity
Important
Public date
May 13, 2026, 5:11 PM