Next.js Middleware Authentication Bypass Spurs Public PoCs and Scanners
Patch & Detection Intelligence · 17 sources · Updated 4mo ago · First seen May 25, 2026

A critical Next.js flaw tracked as CVE-2025-29927 exposed applications using middleware-based authorization to authentication and authorization bypass, allowing protected routes to be reached without intended access checks. Public reporting described the issue as a middleware bypass bug affecting deployments that relied on Next.js middleware for security decisions, prompting urgent guidance for defenders to identify exposed internet-facing applications and remediate vulnerable implementations.
The vulnerability was rapidly operationalized after disclosure, with multiple GitHub repositories publishing proof-of-concept exploits, vulnerable demo apps, Docker labs, and automated detection tools. These included scanners and hunters designed to identify susceptible Next.js sites, as well as exploitation-focused projects advertising middleware auth bypass and route access validation, increasing the likelihood of broad reconnaissance and opportunistic abuse against unpatched environments.


