
Simple script to attempt a Bypass on a server possibly vulnerable to CVE-2025-29927 (Next.js Middleware)
MiddleForce is a specialized security testing tool designed to detect and exploit the CVE-2025-29927 vulnerability in Next.js middleware. This tool helps security professionals identify applications vulnerable to middleware bypass attacks.
git clone https://github.com/diogolourencodev/middleforce.git
cd middleforce
chmod +x install.sh
./install.sh
git clone https://github.com/diogolourencodev/middleforce.git
cd middleforce
pip install -r requirements.txt
# Basic usage
python3 middleforce.py -t http://example.com/api/dashboard
# If installed globally on Linux
middleforce -t http://example.com/api/dashboard
CVE-2025-29927 allows attackers to bypass Next.js middleware protections by manipulating specific HTTP headers. This can lead to unauthorized access to protected routes, API endpoints, and sensitive data.
Contributions are welcome! Feel free to submit pull requests or open issues to improve the tool.
Created by Diogo Lourenço
If you found this tool useful, please consider giving it a star ⭐