← Vulnerability feed

Vulnerability record · CVE-2025-29927 · published 21 March 2025

CVE-2025-29927: Next.js middleware authorization bypass via x-middleware-subrequest header

Vercel · Next.Js

Next.js versions from 1.11.4 up to (but not including) 12.3.5, 13.5.9, 14.2.25, and 15.2.3 allow authorization checks performed in middleware to be bypassed. An attacker can reach protected routes or actions that the middleware was meant to guard, which matters because middleware is a common place to enforce auth in Next.js apps.

9.1 CVSS 3.1 Critical EPSS 99% · top 0.1% CWE-285 · Improper authorizationCWE-863 · Incorrect authorization
9.1CVSS 3.1 base score
99%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References
17 Jun 2026Last modified by NVD

Description

Next.js is a React framework for building full-stack web applications. Starting in version 1.11.4 and prior to versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3, it is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware. If patching to a safe version is infeasible, it is recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application. This vulnerability is fixed in 12.3.5, 13.5.9, 14.2.25, and 15.2.3.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

critical priorityCVSS 9.1 with network reachability, no authentication or interaction required, and an EPSS probability above 0.99 make this a high-urgency authorization bypass.

What it is

Next.js versions from 1.11.4 up to (but not including) 12.3.5, 13.5.9, 14.2.25, and 15.2.3 allow authorization checks performed in middleware to be bypassed. An attacker can reach protected routes or actions that the middleware was meant to guard, which matters because middleware is a common place to enforce auth in Next.js apps.

Impact

An attacker can skip middleware-based authorization and access functionality or data that should require authentication or specific privileges. The CVSS vector indicates high confidentiality and integrity impact with no availability impact.

Attack surface

Reachable over the network via HTTP requests to a vulnerable Next.js application; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N). The flaw is triggered when authorization logic lives in middleware and the request carries the x-middleware-subrequest header.

Exploitation

Not listed in CISA KEV and no ransomware usage documented, but EPSS is very high (0.99225, 99.935th percentile), indicating strong likelihood of exploitation activity. References are patch, release note, vendor advisory and third-party advisory tags only, with no public exploit tag supplied.

What to do

  • Upgrade Next.js to 12.3.5, 13.5.9, 14.2.25, or 15.2.3 (or later) as applicable to your major version.
  • If patching is not immediately possible, block or strip external requests containing the x-middleware-subrequest header before they reach the Next.js application.
  • Do not rely solely on middleware for authorization; enforce authorization checks in the route handlers, server actions, or API layer as defense in depth.
  • Audit middleware-protected routes to identify which ones would be exposed if the bypass occurred, and prioritize those for patching.
  • Monitor vendor advisory GHSA-f82v-jwr5-mffw and related release notes for updates.

Detection

  • Search web/proxy logs for requests containing the x-middleware-subrequest header, especially from external clients.
  • Alert on access to middleware-protected routes that lack a valid authenticated session.
  • Review application logs for authorization decisions made only in middleware and correlate with unexpected access patterns.
  • Baseline normal header sets and flag anomalous or unexpected x-middleware-* headers in inbound traffic.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-29927 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-55182React Server Components pre-auth deserialization RCEReact Server Components versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 (react-server-dom-parcel, react-server-dom-turbopack, react-server-dom-webpack) u…KEVEPSS 100%analysed8.6CVE-2026-44578Vercel next.js server-side request forgery (ssrf) vulnerabilityNext.js is a React framework for building full-stack web applications. From 13.4.13 to before 15.5.16 and 16.2.5, self-hosted applications using the …EPSS 1.9%8.3CVE-2026-64649Vercel next.js server-side request forgery (ssrf) vulnerabilityNext.js is a React framework for building full-stack web applications. In versions 14.1.1 through 15.5.20 and 16.0.0 through 16.2.10, when a Server A…EPSS 0.46%8.3CVE-2026-64642Vercel next.js improper authorization vulnerabilityNext.js is a React framework for building full-stack web applications. In versions 16.0.0 through 16.2.10, crafted requests targeting Next.js applica…EPSS 0.64%8.3CVE-2026-64645Vercel next.js open redirect vulnerabilityNext.js is a React framework for building full-stack web applications. In versions 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, a rewrites() or…EPSS 0.41%8.2CVE-2026-64641Vercel next.js vulnerabilityNext.js is a React framework for building full-stack web applications. In versions 13.0.0 through 15.5.20 and 16.0.0 through 16.2.10, crafted request…EPSS 0.86%8.2CVE-2025-57822Vercel next.js server-side request forgery (ssrf) vulnerabilityNext.js is a React framework for building full-stack web applications. Prior to versions 14.2.32 and 15.4.7, when next() was used without explicitly …EPSS 2.5%8.1CVE-2026-44574Vercel next.js authentication bypass via alternate path vulnerabilityNext.js is a React framework for building full-stack web applications. From 15.4.0 to before 15.5.16 and 16.2.5, applications that rely on middleware…EPSS 0.67%

Source: NIST National Vulnerability Database (record CVE-2025-29927), CISA KEV, FIRST EPSS (scores of 2026-09-22). This page is refreshed as NVD updates the record.