Critical (9.1) in vercel next.js. EPSS 99.2% estimated probability of exploitation activity in the next 30 days. Fixed in next 12.3.5, 13.5.9, 14.2.25.
Next.js is a React framework for building full-stack web applications. Starting in version 1.11.4 and prior to versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3, it is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware. If patching to a safe version is infeasible, it is recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application. This vulnerability is fixed in 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
Severity
CVSS 3.1
9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
99.2%(unchanged from 99.2% a week ago; 99.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-04-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Show the promptExplain CVE-2025-29927 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-29927?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-29927?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-29927 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.
Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
This vulnerability is rated as Critical impact, rather than Important, because it allows complete authorization bypass in affected Next.js versions. Attackers can circumvent middleware-based authentication and access protected routes simply by including a specific HTTP header (x-middleware-subrequest). This bypasses all security controls implemented in middleware, granting unauthorized access to sensitive application functionality, including admin panels and restricted resources.
Red Hat Enterprise Linux is not affected by this vulnerability as the authorization functionality of Next.js is not in use and the component is only used at build time.
Red Hat Enterprise Linux AI is not affected since the listed components Pathservice and UI are not provided to the customers.
Red Hat Trusted Artifact Signer and Streams for Apache Kafka 2 are not affected by this vulnerability as they do not use Next.js for any authorization functionality.
Red Hat's mitigation
Block or drop external user requests which contain the x-middleware-subrequest header from reaching your Next.js application.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
AnonKryptiQuz/NextSploitHarbor Check: matches CVE93 stars, created NextSploit is a command-line tool designed to detect and exploit CVE-2025-29927, a security flaw in Next.js
websecnl/CVE-2025-29927-PoC-ExploitHarbor Check: matches CVE20 stars, created Proof-of-Concept for Authorization Bypass in Next.js Middleware
UNICORDev/exploit-CVE-2025-29927Harbor Check: matches CVE15 stars, created Exploit for CVE-2025-29927 (Next.js) - Authorization Bypass
kOaDT/poc-cve-2025-29927Harbor Check: matches CVE10 stars, created This repository contains a proof of concept (POC) and an exploit script for CVE-2025-29927, a critical vulnerability in Next.js that allows…
phoscoder/ghost-routeHarbor Check: matches CVE9 stars, created Ghost Route detects if a Next JS site is vulnerable to the corrupt middleware bypass bug (CVE-2025-29927)
alihussainzada/CVE-2025-29927-PoCHarbor Check: matches CVE6 stars, created PoC for CVE-2025-29927: Next.js Middleware Bypass Vulnerability. Demonstrates how x-middleware-subrequest can bypass authentication checks.…
t3tra-dev/cve-2025-29927-demoHarbor Check: matches CVE4 stars, created Next.js における認可バイパスの脆弱性 CVE-2025-29927 を再現するデモです。
ferpalma21/nextjs-scannerHarbor Check: matches CVE3 stars, created This script scans a list of URLs to detect if they are using **Next.js** and determines whether they are vulnerable to **CVE-2025-29927**. …
c0dejump/CVE-2025-29927-checkHarbor Check: matches CVE3 stars, created script to check cve "CVE-2025-29927" while waiting to add it to HExHTTP
0xWhoknows/CVE-2025-29927Harbor Check: matches CVE3 stars, created Async Python scanner for Next.js CVE-2025-29927. Uses aiohttp & aiofiles to efficiently process large URL lists, detect vulnerabilities, an…
liamromanis101/CVE-2025-29927-NextJSHarbor Check: matches CVE1 star, Python, created PoC for testing CVE-2025-29927 for Next.js versions 11.x, 12.x <= 12.3.5, 13.x <= 13.5.9, 14.x <=14.2.25, 15.x <= 15.2.3
diogolourencodev/middleforceHarbor Check: matches CVE1 star, created Simple script to attempt a Bypass on a server possibly vulnerable to CVE-2025-29927 (Next.js Middleware)
l1uk/nextjs-middleware-exploitHarbor Check: matches CVE1 star, created Research on Next.js middleware vulnerability (CVE-2025-29927) allowing authorization bypass and potential exploits.
w2hcorp/CVE-2025-29927-PoCHarbor Check: matches CVE1 star, created Here is a simple but effective exploit for CVE-2025-29927.
m2hcz/PoC-for-Next.js-MiddlewareHarbor Check: matches CVE1 star, created > 🔓 Proof-of-Concept for a fictional Next.js middleware bypass (CVE-2025-29927) — craft sub-requests to test protected routes.
Fomovet/cve-2025-29927Harbor Check: matches CVE0 stars, Python, created POC for CVE-2025-29927
Nayekah/Next.js-Proof-of-ConceptHarbor Check: matches CVE0 stars, created Some Proof-of-Concept (POCs) for CVE-2025-29927, CVE-2026-27978, and CVE-2026-29057 in Next.js.
Si-Ni/CVE-2025-29927-Proof-of-ConceptHarbor Check: matches CVE0 stars, TypeScript, created Capture the Flag challenge: CVE-2025-29927 in combination with a command injection vulnerability
MKIRAHMET/CVE-2025-29927-PoCHarbor Check: matches CVE0 stars, created This repository contains **research and analysis** related to CVE-2025-29927. It demonstrates safe, controlled testing approaches for a p…
Detection rules
Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.