
Demo app to exploit CVE-2025-29927: NextJS middleware bypass via proxy-injected headers for unauthorized /admin access. Includes vulnerable app and exploit proxy script.
The NextJS app has cookie based authentification and a middleware to prevent unauthorized access to /admin page.
To start the app run
yarn
# then
yarn dev
To get unauthorized access to /admin page by using CVE-2025-29927 vulnerability run a proxy-server which adds special headers to requests.
node scripts/proxy.js
Then go to http://localhost:8000/admin