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/heimd411/cve-2025-29927-poc
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubheimd411/cve-2025-29927-poc

CVE-2025-29927-PoC

Share

Proof-of-concept exploit for CVE-2025-29927, a Next.js middleware bypass vulnerability. Includes version fingerprinting, configurable header manipulation, and success detection heuristics for testing authentication bypass.

View Repository
441 year agoNot yet reviewed

CVE-2025-29927: Next.js Middleware Bypass PoC

This repository contains a proof of concept (PoC) for CVE-2025-29927, a vulnerability in Next.js middleware that allows bypassing authentication and authorization checks through header manipulation.

Vulnerability Details

Affected Versions: >= 11.1.4, <= 1 3.5.6, > 14.0.0, < 14.2.25, > 15.0.0, < 15.2.3
CVE ID: CVE-2025-29927
Severity: High (CVSS: 9.1)

The vulnerability exists in the middleware chain execution in Next.js, where an attacker can manipulate the x-middleware-subrequest header to bypass middleware security controls. By crafting a specific header value, the middleware can be tricked into treating the request as if it has already been processed, effectively bypassing authentication checks.

This tool is tested on: Next.js 15.0.0 through 15.2.2, other versions may require modifications.

Tool Features

  • Next.js version fingerprinting to identify vulnerable applications
  • Configurable exploit parameters
  • HTML response capture and analysis
  • Success detection heuristics
  • Interactive mode with user confirmation

Requirements

Install dependencies with:

pip install -r requirements.txt

Usage

Basic usage:

python poc-cve-2025-29927.py http://example.com/protected-route

Command Line Options

usage: poc-cve-2025-29927.py [-h] [-r REPEAT] [-o OUTPUT] [--no-browser] [-f] url

PoC for CVE-2025-29927 - Next.js Middleware Bypass

positional arguments:
  url                   Target URL to test (e.g., http://localhost:3000/admin/dashboard)

options:
  -h, --help            show this help message and exit
  -r REPEAT, --repeat REPEAT
                        Number of middleware repeats in header (default: 5)
  -o OUTPUT, --output OUTPUT
                        Output file name (default: response.html)
  --no-browser          Do not open result in browser
  -f, --force           Skip version check and force exploit attempt

Example

Test with default settings

python poc-cve-2025-29927.py http://localhost:3000/admin/dashboard

Force exploit without version checking

python poc-cve-2025-29927.py http://target-site.com/admin/dashboard -f

Customize exploit parameters

python poc-cve-2025-29927.py http://vulnerable-app.com/protected-page -r 10 -o result.html --no-browser

How It Works

The script first attempts to fingerprint the Next.js version of the target application using various detection methods
If a vulnerable version is detected (15.0.0-15.2.2), it proceeds with the exploit
A request is sent with a specially crafted x-middleware-subrequest header
The response is saved to a file and analyzed for success indicators
If successful, the protected content will be accessible without authentication

Mitigation

If you're running a vulnerable version of Next.js, upgrade to version 15.2.3 or later to patch this vulnerability.

Educational Purpose

This tool is provided for educational and security research purposes only. Use it only against applications you own or have explicit permission to test. Unauthorized testing may violate applicable laws.

References

  • Next.js Security Advisory
  • CVE-2025-29927 Advisory
  • Next.js GitHub Repository

License

This project is licensed under the MIT License - see the LICENSE file for details.

Heimd411
Security Researcher
GitHub Profile
This Repository

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.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    544
  • 3

    ARTEX

    baarai/artex

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

    385
  • 4

    redforge

    cybersecurity91/redforge

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

    360
  • 5

    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.

    302
  • 6

    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.

    279

Explore all tools

Browse our collection of tools

View all tools →