Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-29927 — PoC | NextJS Middleware 15.2.2 - Authorization Bypass | Kitploit
Tools/GitHubGitHub/zs1n/cve-2025-29927
Authentication & AuthorizationVulnerability AnalysisExploitationIDS/IPS EvasionWeb Application ExploitationPenetration Testing
GitHubzs1n/cve-2025-29927

CVE-2025-29927

PoC | NextJS Middleware 15.2.2 - Authorization Bypass

View Repository
11 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-29927 - Next.js Middleware 15.2.2 - Authorization Bypass

⚠️ Critical Authentication Bypass in NextJS Middleware
🛠️ PoC implementation by @zs1n


💡 Overview

NextJS is a popular React-based web framework, has an authentication vulnerability that affects versions prior to 12.3.5, 13.5.9, 14.2.25, and 15.2.3,this consist in the improper trust on x-middleware-subrequest header.When to spoofing this header, attackers can be bypass the middleware logic, This results in authentication and authorization mechanisms that are not normally permitted, gaining access to routes that are not permitted.


🛠 Technical Breakdown

NextJS uses middleware to enforce the security policies such as authentication and authorization before routing requests. Because this header is blindly trusted by the framework, an attacker can Spoofing this header, which causes an improper handling of the middleware header, that causes effectively bypassing authentication. This lets any network user can be see o gain access to routes that are not permitted.


🔥 Vulnerable Header

x-middleware-subrequest — NextJS vulnerable Header


💥 Exploitation

An attacker can send a request with a spoofer x-middleware-subrequest to impersonate an internal request.


🔬 Clone the repositori on your machine.

root@kitploit:~
git clone https://github.com/zs1n/CVE-2025-29927

🚀 Launching the Exploit

Run the exploit script CVE-2025-29927.py.

root@kitploit:~
python3 CVE-2025-29927.py -u http://128.43.16.13/api/auth

📝 References

  • OffSec | CVE-2025-29927 Detail/Blog
Download Tool