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 — 🔐 Python-based smart scanner for CVE-2025-29927 — Next.js middleware authentication bypass vulnerability. Detects meta refresh, keyword-based redirects, and more. | Kitploit
Tools/GitHubGitHub/sagsooz/cve-2025-29927
Vulnerability ScannersWeb Application ExploitationWeb SecurityPenetration TestingAuthenticationLearning & Education
GitHubsagsooz/cve-2025-29927

CVE-2025-29927

🔐 Python-based smart scanner for CVE-2025-29927 — Next.js middleware authentication bypass vulnerability. Detects meta refresh, keyword-based redirects, and more.

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 - Next.js Middleware Bypass Detector

This Python-based smart scanner helps detect the CVE-2025-29927 vulnerability in Next.js applications — a critical middleware bypass that allows attackers to skip authentication using a crafted HTTP header.

🧠 The tool identifies not only HTTP redirects but also client-side redirection mechanisms such as <meta http-equiv="refresh">, keyword-based login redirects, and silent auth bypasses.


🚀 Features

  • ✅ Interactive input (target URL and path)
  • ✅ Smart detection of:
    • x-middleware-subrequest bypass headers
    • <meta refresh> based redirects
    • HTML content with keywords like login, sign in, authentication
  • ✅ Color-coded CLI output:
    • 🟩 Green for 2xx responses
  • 🟨 Yellow for 3xx
  • 🟥 Red for 4xx/5xx
  • ✅ Early exit if bypass is successful
  • ✅ Easy to extend and customize

  • 📸 Demo

    root@kitploit:~
    $ python3 CVE-2025-29927.py
    
    🌐 Enter the target site URL (e.g. http://localhost:3000): http://vulnerable.local
    📁 Enter the protected path (e.g. /dashboard): /admin
    
    → Testing with header: middleware:middleware:middleware:middleware:middleware
       ↳ HTTP Status: 200
       ↳ Redirect detected: No
    
    ✅ VULNERABLE! Bypass successful with header:
       x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware
    

    🧑‍💻 How to Use

    1. Clone the repository:

    root@kitploit:~
    git clone https://github.com/sagsooz/CVE-2025-29927.git
    cd CVE-2025-29927
    

    2. Install dependencies:

    root@kitploit:~
    pip install -r requirements.txt
    

    3. Run the script:

    root@kitploit:~
    python3 CVE-2025-29927.py
    

    📂 Project Structure

    root@kitploit:~
    .
    ├── CVE-2025-29927.py   # Main interactive scanner
    ├── requirements.txt            # Python dependencies
    └── README.md                   # This file
    

    📦 requirements.txt

    root@kitploit:~
    requests
    beautifulsoup4
    colorama
    

    🛡️ How to Fix

    If your app is affected, do the following:

    1. Update Next.js to v15.2.3 or later (or 14.2.25+ / 13.5.7+)
    2. Harden middleware routing and avoid relying solely on middleware for authentication.
    3. Strip x-middleware-subrequest header at the edge (e.g. Nginx):
    root@kitploit:~
    proxy_set_header x-middleware-subrequest "";
    

    ℹ️ About the Vulnerability

    CVE-2025-29927 allows attackers to bypass Next.js middleware checks by manipulating the x-middleware-subrequest header with crafted values such as:

    root@kitploit:~
    x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware
    

    In vulnerable versions, this disables middleware execution completely — allowing direct access to protected routes like /dashboard, /admin, etc.


    📬 Contact

    Maintained by: @mrzblackhat
    Feel free to contact me on Telegram for suggestions, improvements, or contributions.


    🏷 Tags

    next.js CVE-2025-29927 bugbounty middleware bypass authentication web security python security scanner ethical hacking


    📄 License

    This tool is provided for educational and research purposes only. Use responsibly.

    Download Tool