Lucene search
+L

Next.js CVE-2024-34351 Detect

🗓️ 26 Oct 2026 17:01:54Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 11 Views

Detects Next.js Server Actions or middleware headers via X-Powered-By or static paths.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Detects Next.js Server Actions / middleware headers."""

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Scanner, Http_client):
    __info__ = {
        "name": "Next.js CVE-2024-34351 Detect",
        "description": "Detects Next.js Server Actions / middleware headers.",
        "author": ["KittySploit Team"],
        "severity": "critical",
        "cve": ["CVE-2024-34351"],
        "tags": ["scanner", "web", "nextjs", "cve-2024-34351"],
        "references": ["https://nvd.nist.gov/vuln/detail/CVE-2024-34351"],
        "agent": {
            "risk": "active",
            "effects": ["network_probe"],
            "expected_requests": 2,
            "reversible": True,
            "approval_required": False,
            "produces": ["tech_hints", "endpoints", "risk_signals"],
            "chain": {
                "suggested_followups": ["exploits/multi/http/nextjs_cve_2024_34351_ssrf"],
            },
        },
    }

    def run(self):
        r = self.http_request("GET", "/", allow_redirects=True)
        body = (r.text or "").lower() if r else ""
        headers = {k.lower(): v for k, v in (dict(getattr(r, "headers", {})) or {}).items()} if r else {}
        if "x-powered-by" in headers and "next" in headers.get("x-powered-by", "").lower():
            self.set_info(severity="high", cve="CVE-2024-34351", reason="Next.js response headers", confidence="medium")
            return True
        if "_next/static" in body:
            self.set_info(severity="high", cve="CVE-2024-34351", reason="Next.js static bundle paths", confidence="medium")
            return True
        return False

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

26 Oct 2026 17:01Current
7.5High risk
Vulners AI Score7.5
CVSS 3.17.5
EPSS0.05453
SSVC
11