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

CVE-2025-29927

CVE-2025-29927 Proof of Concept

View Repository
10128931 year agoReviewed by Kitploit
Share

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

This repository demonstrates the CVE-2025-29927 vulnerability in Next.js where the internal header x-middleware-subrequest can be used to bypass middleware checks like authentication.

Vulnerability Details

Next.js uses 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.

Affected Versions

  • Next.js 15.x < 15.2.3
  • Next.js 14.x < 14.2.25
  • Next.js 13.x < 13.5.9

Impact Scope

Affected

  • Self-hosted Next.js applications using Middleware (next start with output: standalone)
  • Applications that rely on Middleware for auth or security checks, which are not then validated later in the application

Not Affected

  • Applications hosted on Vercel
  • Applications hosted on Netlify
  • Applications deployed as static exports (Middleware not executed)

Reproduction Steps

  1. Clone this repository
  2. Install dependencies: npm install
  3. Build the application: npm run build
  4. Start the application in production mode: node .next/standalone/server.js
  5. Test the vulnerability: node exploit-test.js

How the Exploit Works

The exploit adds the x-middleware-subrequest: middleware header to bypass Next.js middleware authentication checks.

image

The middleware in this demo app redirects unauthenticated users away from protected routes, but with the exploit header, this check can be bypassed.

image image

Fix

Update to one of the following patched versions:

  • Next.js 15.2.3 or higher
  • Next.js 14.2.25 or higher
  • Next.js 13.5.9 or higher

Source

  • https://nextjs.org/blog/cve-2025-29927
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 →