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
CVE-2025-29927-Testing — PowerShell script to test if a web app is vulnerable to CVE-2025-29927 | Kitploit
Tools/GitHubGitHub/theresafewconors/cve-2025-29927-testing
Vulnerability AnalysisExploitationScripting & AutomationInformation GatheringWeb SecurityPenetration Testing
GitHubtheresafewconors/cve-2025-29927-testing

CVE-2025-29927-Testing

PowerShell script to test if a web app is vulnerable to CVE-2025-29927

View Repository
22671 year agoNot yet reviewed
Share

Testing script for CVE-2025-29927 Provided by CyberMaxx.

CVE-2025-29927 Tester

This PowerShell script is designed to help security researchers and system administrators test for CVE-2025-29927 vulnerabilities in Next.js applications. It checks whether a target application is vulnerable to the middleware bypass issue by verifying the Next.js version and testing for potential security risks with middleware implementation.

Features:

  • Header inspection: Retrieves HTTP headers from the target URL to confirm whether Next.js is in use (x-powered-by: Next.js).
  • Version extraction: Searches the target application’s static JavaScript files for the version of Next.js being used.
  • CVE-2025-29927 test: Tests the target application for a potential middleware bypass by sending a specially crafted x-middleware-subrequest header.

Usage

Run from an administrative PowerShell window:

.\test-cve-2025-29927.ps1 -TargetUrl <url>

# Example:
.\test-cve-2025-29927.ps1 -TargetUrl "http://localhost:3000"

Example Output

How Does It Work?

The script checks if Next.js is being used via the x-powered-by header. If Next.js is detected, it attempts to extract the version from common static assets like framework.js and main.js looking for vulnerable version info related to CVE-2025-29927.

The script then sends a request with the x-middleware-subrequest header and checks if the response is HTTP 200, which would indicate that the vulnerability is present.

Mitigation

  • Upgrade to a patched version of Next.js (13.5.9 or later).
  • Validate or strip the x-middleware-subrequest header to prevent middleware bypass.
  • Enhance authentication mechanisms and avoid relying solely on middleware for critical security.
  • Limit the scope of middleware to only essential paths.
  • Monitor and log suspicious activity related to middleware bypass attempts.
  • Configure security headers like HSTS and CSP to protect your app.
  • Regularly audit your codebase and dependencies for security issues. Upgrade to the latest version

Further Reading

  • Original blogpost by Rachid Allam who discovered this vulnerability can be found here.

Disclaimer

This script is intended for testing of assets that you have permission and are authorized to against CVE-2025-29927 only.

Usage of this script does not provided a guarantee that an application is / is not vulnerable, only that the items the script looks for are or are not present. The author of this script does not take responsibility for any consequences arising from its use.

By using this script, you agree to take full responsibility for your actions. Ensure you have explicit permission before testing any system that does not belong to you.

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.

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    415
  • 4

    redforge

    cybersecurity91/redforge

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

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

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

    258

Explore all tools

Browse our collection of tools

View all tools →