
Postmortem on Next.js Middleware bypass
3/25/2025
This post details a critical vulnerability (CVE-2025-29927) in Next.js Middleware, explaining the timeline of its discovery, investigation, and patching. It provides a technical analysis of how the `x-middleware-subrequest` header could be exploited to bypass Middleware execution and discusses why Vercel's platform was not affected. The post also outlines next steps for improving security processes, partner communication, and the Next.js LTS policy.