Vercel warns that middleware authorization checks can be bypassed. Datadog explains that vulnerable logic may treat an external request as an internal subrequest.The exposure matters when middleware is the application’s authorization gate. Vercel fixed the 12.x, 13.x, 14.x, and 15.x branches in 12.3.5, 13.5.9, 14.2.25, and 15.2.3, respectively.
What it allows
How Does CVE-2025-29927 Bypass Middleware Authorization?
Next.js uses an internal subrequest marker to manage middleware recursion. Datadog explains that vulnerable logic can treat an attacker-controlled external request as internal and skip the middleware.
If an application checks authorization only in middleware, the skipped check may expose protected content or actions. A later authorization check in the application can limit that outcome. This is an authorization bypass, not a general claim of code execution.
What Do the Exploitation Observations Show?
Datadog Security Labs reported low-volume scanning or exploitation activity on 28 March 2025. It described much of the scanning as ineffective and poorly targeted. Those observations establish attempts, not successful compromise of a named deployment.
Brandefense Blackhole counted nine dark-chat posts mentioning CVE-2025-29927 from 25 August to 23 November 2026. The unit is a post mentioning the identifier. This discussion count does not measure attacks, affected systems, or confirmed incidents.
A GitHub search prepared on 23 November 2026 found 141 public repositories matching the CVE identifier. This is a repository search count, not a validated count of working proof-of-concept tools or exploitation events. Treat it as research interest during triage.
The CISA KEV catalog snapshot released on 20 November 2026 does not list this CVE. Catalog status and observed attempts answer different questions. Prioritize internet-facing self-hosted deployments that rely on middleware for authorization.
For patch prioritization, use the vulnerability intelligence platform alongside your deployment inventory. The vulnerability intelligence glossary explains the broader triage process.
The Traefik sanitizePath authorization bypass profile covers a different path interpretation mismatch between a reverse proxy and its backend.Who is affected
Which Next.js Deployments Are Affected?
Vercel lists Next.js from 11.1.4 up to but excluding 12.3.5, 13.0.0 to 13.5.9, 14.0.0 to 14.2.25, and 15.0.0 to 15.2.3. Each upper bound is the first fixed version in that branch.
The vulnerable path requires authorization enforced in middleware. Datadog highlights self-hosted deployments where middleware runs and the application lacks a later authorization check. Vercel states that Next.js deployments hosted on Vercel are automatically protected.
Version 11.x has no patched version in Vercel’s advisory; it directs 11.x operators to the workaround. Check the deployed runtime version and whether middleware controls access, rather than relying only on a package manifest.
How Should Teams Patch and Verify?
Update each supported branch to at least 12.3.5, 13.5.9, 14.2.25, or 15.2.3, as applicable. Vercel recommends blocking external requests carrying its internal middleware subrequest header when patching is infeasible. This is a temporary mitigation, including for 11.x.
After deployment, confirm the running Next.js version in each environment and test that protected routes reject unauthenticated access. Review whether server-side authorization also protects sensitive actions. Record the change in your patch management process.
For a separate Next.js issue, the Next.js use cache RCE profile covers a different flaw. Follow its own remediation path.
- Identify middleware authorization gatesConfirm the running Next.js branch and version
- Patch supported branchesConfirm the fixed version is active
- Validate protected routesVerify unauthenticated requests are rejected
Timeline
- 2025-03-21
Vercel published the GHSA for middleware authorization bypass and four patched branch versions.
- 2025-03-28
Datadog Security Labs reported limited scanning and possible exploitation activity, describing much of the scanning as ineffective.
- 2026-11-20
The CISA KEV catalog snapshot did not list CVE-2025-29927.
What to do
-
Identify exposed authorization gates
Inventory self-hosted Next.js applications that enforce access in middleware. Confirm whether sensitive routes have an independent server-side authorization check.
-
Apply the branch fix
Update 12.x to 12.3.5 or later, 13.x to 13.5.9 or later, 14.x to 14.2.25 or later, and 15.x to 15.2.3 or later. For 11.x, follow Vercel’s workaround and plan migration.
-
Use the temporary mitigation if needed
If patching is delayed, prevent external requests with the internal middleware subrequest header from reaching the application. Validate that the edge rule is active.
-
Verify the running deployment
Read the active Next.js version after release. Test that protected routes and sensitive actions still require authorization, then review relevant access logs for unexpected requests.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2025-29927 in Brandefense Atlas
The Atlas record of CVE-2025-29927: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
What makes CVE-2025-29927 exploitable?
The application must rely on vulnerable Next.js middleware for authorization. An external request can be handled as an internal subrequest, skipping that middleware check.
Which Next.js versions fix CVE-2025-29927?
Vercel lists 12.3.5, 13.5.9, 14.2.25, and 15.2.3 as fixed versions for their respective branches. Version 11.x uses the advisory workaround.
Are Next.js deployments on Vercel affected?
Vercel says deployments hosted on its platform are automatically protected against this vulnerability. Self-hosted teams should inspect their running version and authorization design.
Do the reported scans prove a breach?
Datadog reported low-volume scanning or exploitation activity, much of it ineffective. The report does not provide a confirmed compromise count for affected organizations.
Sources
- Authorization Bypass in Next.js MiddlewareVercel / GitHub Security Advisory
- Understanding CVE-2025-29927Datadog Security Labs
- CVE-2025-29927 DetailNVD
- Known Exploited Vulnerabilities CatalogCISA