Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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 — Next.js Middleware Bypass Vulnerability | Kitploit
Tools/GitHubGitHub/alastair66/cve-2025-29927
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubalastair66/cve-2025-29927

CVE-2025-29927

Next.js Middleware Bypass Vulnerability

View Repository
11 year 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 (Critical - 9.1)

Next.js Middleware Bypass Vulnerability

Hands-On of CVE-2025-29927 vulnerability in Next.js application where the internal header x-middleware-subrequest can be used to bypass middleware authentication and restricted access.

Explained

Next.js use an internal header "x-middleware-subrequest" to prevent recursive requests from triggering infinite loops. The security vulnerability shows it's possible to skip running Middleware, which could allow requests to bypass critical checks—such as authorization, cookie validation—before reaching routes.

Patched Versions

Next.Js 15.2.3, 14.2.25, 13.5.9, 12.3.5

Setup Environment

  1. Clone this Repository.
  2. Start docker in your system
  3. Go to repo path & build the image with: docker build -t nextjs-docker-demo .
  4. Next, run the container: docker run -p 3000:3000 nextjs-docker-demo
  5. Access the environment: http://localhost:3000
  6. Test/Exploit: curl -H "x-middleware-subrequest: middleware" http://localhost:3000/admin

Official Blog

https://nextjs.org/blog/cve-2025-29927

Download Tool