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
nextjs-CVE-2025-29927 — A Nuclei template to detect CVE-2025-29927 the Next.js authentication bypass vulnerability | Kitploit
Tools/GitHubGitHub/6mile/nextjs-cve-2025-29927
Vulnerability ScannersWeb Application ExploitationWeb SecurityPenetration TestingAuthenticationMisconfiguration
GitHub6mile/nextjs-cve-2025-29927

nextjs-CVE-2025-29927

A Nuclei template to detect CVE-2025-29927 the Next.js authentication bypass vulnerability

View Repository
19321 year 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

nextjs-CVE-2025-29927

A Nuclei template to detect CVE-2025-29927 the Next.js authentication bypass vulnerability. If you want to understand exactly how this vulnerability works, you can read the original researchers excellent article here

This template is pretty straight forward. It does two things: First, it identifies that a website is using Next.js and then it tests to see if the target is utilizing middleware via the presence of specific response headers. This template will identify when those two things both exist via HTTP headers. I wrote this template to help teams quickly hunt for the presence of CVE-2025-29927 in their web apps, any other use of this template is strictly discouraged.

Disclaimer

This template will not find every application that is vulnerable to CVE-2025-29927. This template does not pass x-middleware-subrequest: true to test if the application is attackable. Additionally, its important to note that a positive match for both does NOT mean that the application is definitely vulnerable. If your application doesn't use middleware response headers, it won't be picked up by this template. On the flip side, since its impossible to detect the version of Next.js that's being used, my template will identify applications as vulnerable that have already been patched.

Install Nuclei

If you haven't used Nuclei before you can follow the instructions here: https://github.com/projectdiscovery/nuclei

Using the nextjs-CVE-2025-29927 Nuclei template

You will probably want to add the -fr switch to enable "follow redirects".

root@kitploit:~
nuclei -u https://example.com -t ./CVE-2025-29927-6mile.yaml -fr

nextjs-CVE-2025-29927-pic

Use the -l argument in Nuclei to use a list of URLs in a file.

root@kitploit:~
nuclei -l websites.list -t ./CVE-2025-29927-6mile.yaml -fr -silent

nextjs-CVE-2025-29927-pic2

Download Tool