CVE-2025-29927

Published Mar 21, 2025

Last updated a year ago

CVSS critical 9.1
React
Next.js
web application

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-29927 is an authorization bypass vulnerability affecting Next.js, a React framework. It stems from the improper handling of the `x-middleware-subrequest` header. By exploiting this vulnerability, attackers can bypass authorization checks implemented in Next.js middleware. This flaw allows attackers to skip running the middleware, potentially allowing requests to bypass critical checks like authorization cookie validation before reaching routes. Self-hosted Next.js applications using Middleware are affected, specifically those relying on it for authentication or security checks. The vulnerability is fixed in Next.js versions 14.2.25 and 15.2.3.

Description
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.
Source
security-advisories@github.com
NVD status
Analyzed
Products
next.js

Insights

Analysis from the Intruder Security Team
Published Mar 24, 2025 Updated Mar 24, 2025

This authentication bypass vulnerability in Next.js allows an attacker to bypass middleware validation steps such as checking the user is authorized to access a resource. The exploit is simple to use and could potentially be exploited en-masse, though some manual effort is likely to be required to identify routes that are not accessible without authentication.

The advisory states that deployments using next start and output: 'standalone' should be updated as a priority, and lists the affected versions.

Next.js is a full stack framework, and applications which are only using front-end elements of the framework will not be vulnerable. Additionally, popular WAFs like Cloudflare added detection rules for this exploit already, so there is also reduced risk for applications which are deployed behind a WAF with effective rules. However, WAFs should not be relied upon to protect against this weakness, as further research could reveal bypasses, or alternative routes to exploit the weakness.

Risk scores

CVSS 3.1

Type
Secondary
Base score
9.1
Impact score
5.2
Exploitability score
3.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Severity
CRITICAL

Weaknesses

security-advisories@github.com
CWE-285
nvd@nist.gov
CWE-863

Social media

Hype score
Not currently trending
  1. 🔴 SpiderCob, Repository Configuration, #CVE-2025-29927 (critical) -DC-Nov2026-4071 https://t.co/tjC5ah9j9u

    @dailycve

    1 Nov 2026

    136 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  2. CVE-2025-29927 is a good reminder not to rely on Next.js middleware alone for auth: a crafted header could skip it on unpatched versions. Check auth again where the data is read, in the route or server action. https://t.co/35NEEN8Qfy

    @Stacksiren

    31 Oct 2026

    0 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  3. 🔴 Nextjs, Authorization Bypass, #CVE-2025-29927 (Critical) -DC-Oct2026-4000 https://t.co/tMOVPLtu5y

    @dailycve

    30 Oct 2026

    145 Impressions

    1 Retweet

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  4. Hiding a page in React isn't auth. Nor is a middleware redirect on its own. In 2025 a crafted header let requests skip Next.js middleware entirely (CVE-2025-29927). Check the session again where data is read: the server action or route handler, plus RLS in Supabase.

    @runshipcheck

    28 Oct 2026

    0 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  5. I just completed Next.js: CVE-2025-29927 room on TryHackMe! Explore an authorisation bypass vulnerability in Next.js. https://t.co/f6XrSXQpyj #tryhackme via @tryhackme

    @pooping4poops

    8 Oct 2026

    2 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  6. NØX Echo Lineage Signal: CVE-2025-29927 Entity: next.js Lineage: Public vulnerability → Public exploit/PoC → Observed exploitation Relationship: - next.js → CVE-2025-29927 → Evidence → Operational Risk Current State: DISCLOSED, POC_AVAILABLE, ACTIVE_EXPLOITATION

    @_Why_Noot

    8 Oct 2026

    36 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  7. HUGIN Case Intelligence Case: CVE-2025-29927 / next.js Observed Evidence: - Public PoC/exploit available - Active exploitation reported - Live exploitation observed by VulnCheck canaries Evidence State: DISCLOSED, POC_AVAILABLE, ACTIVE_EXPLOITATION Assessment:

    @HuginIntel

    8 Oct 2026

    5 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  8. NØØT Security Alerts Classification: Critical CVE: CVE-2025-29927 Product: vercel / next.js Summary: VulnCheck reports real-world exploitation activity affecting vercel / next.js. Evidence: Public PoC/exploit available; Active exploitation reported; Live exploitation observe

    @Python_s_

    8 Oct 2026

    42 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  9. @zhero___ Regarding the Next.js middleware bypass (CVE-2025-29927) did you report it to Vercel first and only go after bug bounty programs after the fix, or did you also report it to vulnerable programs immediately after report it to vendor ? Curious about your approach.

    @Blackstone0123

    7 Oct 2026

    53 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  10. ‼️🇺🇸 CRITICAL VULNERABILITY CLAIM — NYU SUBDOMAIN Threat actor ShadowByt3S claims to have identified a potentially vulnerable New York University (NYU) subdomain affected by CVE-2025-29927, a critical vulnerability with a reported CVSS score of 9.1. 🔎 Claimed sta

    @CyberPulse56

    30 Sept 2026

    360 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  11. A hidden button isn't authorization, and neither is the framework's middleware (proxy in Next.js 16). One forged internal header bypassed Next.js middleware auth in March 2025 (CVE-2025-29927, CVSS 9.1). Next.js fixed four more middleware bypasses in May 2026 and a fifth in July.

    @n_bukhtiyarova

    17 Sept 2026

    50 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  12. For a while in 2025 you could walk past authentication on a huge number of Next.js apps by adding one header to a request. CVE-2025-29927. Severity 9.1. #nextjs

    @auditdpro

    16 Sept 2026

    23 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  13. 【MBSD-SOCの検知傾向トピックス】 2026年8月分#MBSD#SOCの検知傾向トピックスを公開しました。 今月は、Next.jsの脆弱性(CVE-2025-29927)を狙った攻撃が増加しました。 https://t.co/Dfz5RZh0S1

    @mbsdnews

    16 Sept 2026

    649 Impressions

    0 Retweets

    6 Likes

    2 Bookmarks

    0 Replies

    0 Quotes

  14. CVE-2025-29927. You could bypass Next.js middleware auth entirely by adding one header to the request. CVSS 9.1. If your auth lived in middleware, it wasn't auth. #nextjs

    @auditdpro

    14 Sept 2026

    34 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  15. This week exploitation attempts arrived in same-day cohorts across unrelated flaws. Adversaries escalated a Next.js authorization bypass, CVE-2025-29927, across the final three days of the period, from no more than three daily sources to 495 across a partial final day, still htt

    @GreyNoiseIO

    2 Sept 2026

    889 Impressions

    1 Retweet

    3 Likes

    2 Bookmarks

    0 Replies

    0 Quotes

  16. CASE FILE: Developer used Claude Code and OpenAI Codex to "vibe code" a Next.js app. AI pinned a vulnerable dependency version. Result? CVE-2025-29927 exploited, middleware bypassed, cryptominer deployed. The attack chain: AI-generated project → vulnerable dependency →

    @ClawAndOrderAI

    25 Aug 2026

    39 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  17. One header bypassed every auth check in Next.js middleware. CVE-2025-29927, CVSS 9.1. x-middleware-subrequest tricked Next.js into skipping middleware entirely — no error, just didn't run. Lesson: middleware should never be your only auth layer. #NextJS #AppSec https://t.co/

    @VulnCode_

    20 Aug 2026

    150 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    1 Reply

    0 Quotes

  18. Rodei meu auditor de segurança no template OFICIAL de SaaS da Vercel. Score: 60/100. 🔴 Ele usa uma versão do Next.js vulnerável ao CVE-2025-29927 — dá pra pular o middleware de autenticação inteiro com um header HTTP. Rotas "protegidas" acessíveis sem login. ANTES/

    @SavioLuizLauf

    19 Jul 2026

    8 Impressions

    1 Retweet

    1 Like

    0 Bookmarks

    1 Reply

    0 Quotes

  19. 6 of the 8 major #NextJS versions are past end-of-life. v14 hit EOL on Oct 26, 2025 — and 26 CVEs are now sitting unpatched on end-of-life lines, including a critical 9.1 middleware auth bypass (CVE-2025-29927). #WebSecurity #CVE https://t.co/kJx87teeGi

    @herodevs

    10 Jul 2026

    110 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  20. ACTIVE EXPLOIT: New Metasploit modules released for critical vulnerabilities including CVE-2025-25205 (Audiobookshelf unauthenticated API bypass), CVE-2026-42208 (LiteLLM proxy pre-auth SQLi), CVE-2025-29927 (Next.js middleware auth bypass), and CVE-2026-45087 (Dalfox

    @ThreatPing

    28 Jun 2026

    11 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  21. ACTIVE EXPLOIT: New Metasploit modules released for critical vulnerabilities including CVE-2025-25205 (Audiobookshelf unauthenticated API bypass), CVE-2026-42208 (LiteLLM proxy pre-auth SQLi), CVE-2025-29927 (Next.js middleware auth bypass), and CVE-2026-45087 (Dalfox https://t.c

    @ThreatPing

    27 Jun 2026

    10 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  22. A Next.js PR trusted `x-middleware-subrequest` from external clients, bypassing auth. CVE-2025-29927 (CVSS 9.1). Our analyzer caught it on the diff. 🔗 https://t.co/rahNsKsfRC

    @polsia

    12 Jun 2026

    42 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  23. Your Next.js middleware runs on every request. Or it's supposed to. CVE-2025-29927 let attackers skip it entirely — with a single HTTP header. No exploit code. No auth bypass tool. Just curl and one header. If middleware was your only auth layer, every protected route was ope

    @DataHogo

    18 May 2026

    269 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  24. Someone added one HTTP header to a request. The dashboard loaded. No login. No session. No credentials. Just: x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware That's CVE-2025-29927. It bypassed every Next.js middleware check in versions 11.1.4

    @DataHogo

    18 May 2026

    284 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  25. Why CVE-2026-44578 is not like CVE-2025-29927: 44578: the proxy feature runs — just to a forbidden target → #1 29927: middleware protection is skipped → #2 Same Next.js ecosystem. Buzzwords group them. TLCTC separates causes. https://t.co/XBSqMhGK1w #TLCTC #Cybersec

    @fr33thought

    15 May 2026

    32 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  26. I just completed Next.js: CVE-2025-29927 room on TryHackMe! Explore an authorisation bypass vulnerability in Next.js. https://t.co/uN3XW5fFa8 #tryhackme via @tryhackme #tryhackme #learning #Consistency

    @LittleSun4lower

    9 May 2026

    250 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  27. "PCP replaced" - the metric tracked by PCPJack's C2. PCPJack is a Linux credential-stealing worm disclosed May 7, 2026 by SentinelLabs. It exploits five CVEs to spread: - CVE-2025-29927 (Next.js middleware auth bypass) - CVE-2025-55182 "React2Shell" (Next.js Server Actions

    @SecureChap

    8 May 2026

    283 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  28. New PCPJack worm targets cloud infrastructure, stealing credentials from Docker/Kubernetes/Redis while actively removing TeamPCP infections. Exploits 5 recent CVEs including CVE-2025-29927 and CVE-2026-1357 for initial access. #DFIR_Radar https://t.co/4pMlgIN6MQ

    @DFIR_Radar

    7 May 2026

    341 Impressions

    0 Retweets

    2 Likes

    1 Bookmark

    1 Reply

    0 Quotes

  29. What started as bash scripts and scheduled scans evolved into full scale cloud-native execution with Nuclei Cloud. When the Next.js CVE-2025-29927 dropped, Elastic scanned 14,500 assets in under 5 minutes, something that previously took days. Read the full customer story here

    @pdiscoveryio

    30 Apr 2026

    1142 Impressions

    2 Retweets

    10 Likes

    4 Bookmarks

    0 Replies

    0 Quotes

  30. We just got hit with worst cybersecurity attack. Issue traced back to Opus committing "Good for now, not a big deal" on a well known vulnerability from last year "CVE-2025-29927" In order to fix an issue, Opus 4.6 chose to downgrade Nextjs to 15.0.3 which has sever known issue.

    @4n1rudh4

    15 Apr 2026

    103 Impressions

    0 Retweets

    2 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  31. [CYBERSEC] 𝗡𝗲𝘅𝘁.𝗷𝘀 𝗖𝗩𝗘-𝟮𝟬𝟮𝟱-𝟮𝟵𝟵𝟮𝟳 𝗔𝗹𝗹𝗼𝘄𝘀 𝗙𝘂𝗹𝗹 𝗔𝘂𝘁𝗵𝗲𝗻𝘁𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗕𝘆𝗽𝗮𝘀𝘀 In March 2025, Vercel disclosed CVE-2025-29927, a critical flaw in

    @DarkForgeNews

    2 Apr 2026

    113 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  32. Researchers have uncovered a critical vulnerability (CVE-2025-29927) in Next.js middleware, allowing authorization bypass. Learn about the exploit and fixes. https://t.co/dUBFM8DcV0

    @pedri77

    26 Mar 2026

    133 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  33. 【Qiita】1年前にすごい人 [ Next.js CVE-2025-29927 ]に関する記事を書いた @suin さん : https://t.co/SxGcP0On3a

    @q_hayari

    25 Mar 2026

    223 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  34. A vibe-coded Next.js app got a cryptominer. Not from bad prompting. Not from a bad model. The AI pinned a vulnerable dependency. The app passed functional tests. Nobody asked "why this version?" Attacker found CVE-2025-29927. Middleware bypass. Mining binary. 100% CPU. AI

    @gremlinworks_

    17 Mar 2026

    101 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  35. 1/4: Next.js sitenizin kapısını açık mı bıraktınız? (CVE-2025-29927) 🚨 Tüm auth ve CSP katmanınızı tek bir header ile geçmek mümkün. Şu anki meta: **x-middleware-subrequest** suistimali. Nasıl çalıştığını ve korunma yollarını inceleyelim. 🧵 2/

    @logapsec

    10 Mar 2026

    153 Impressions

    0 Retweets

    1 Like

    1 Bookmark

    0 Replies

    0 Quotes

  36. I just completed Next.js: CVE-2025-29927 room on TryHackMe! Explore an authorisation bypass vulnerability in Next.js. https://t.co/UNic0BXic5 #tryhackme via @tryhackme

    @ToTo13ru_xakep

    9 Mar 2026

    38 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  37. 🚨 Nextjs Middleware Bypass Flaw (#CVE-2025-29927): A Deep Dive into the Vulnerability and How to Secure Your Apps + Video https://t.co/EkI4a9gG6E Educational Purposes!

    @UndercodeUpdate

    23 Feb 2026

    26 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  38. I just completed Next.js: CVE-2025-29927 room on TryHackMe! Explore an authorisation bypass vulnerability in Next.js. https://t.co/mHFw7nPj0s #tryhackme via @tryhackme

    @acupunc28094787

    22 Feb 2026

    43 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  39. 🚨 CVE-2026-1281 Critical Code Injection in Ivanti EPMM: What You Should Know 🚨 Discover the key information you need to know about CVE-2025-29927, an authentication bypass vulnerability in the middleware layer in Vercel’s Next.js. Learn more: https://t.co/FBnEhbfv8Y htt

    @pluralsight

    3 Feb 2026

    1136 Impressions

    0 Retweets

    0 Likes

    2 Bookmarks

    0 Replies

    0 Quotes

  40. 🚨 Next.js Middleware Auth Bypass (CVE-2025-29927 | CVSS 9.1) One trusted header. Skipped middleware. Full app compromise. Our research shows how a single request leads to auth bypass, LFI & server takeover. Full blog: https://t.co/s20LKcdmiF Connect - https://t.co/wRAYxGeO

    @consult_secnuo

    28 Jan 2026

    31 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  41. CVE-2025-29927: Next.js Middleware Bypass: When 'I'm With The Band' Actually Works https://t.co/YkiB6BgVG9 #security #cybersecurity #cve #ghsa

    @_cvereports

    12 Jan 2026

    12 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  42. Top 5 Trending CVEs: 1 - CVE-2025-43533 2 - CVE-2023-29218 3 - CVE-2026-20029 4 - CVE-2025-55182 5 - CVE-2025-29927 #cve #cvetrends #cveshield #cybersecurity https://t.co/4Fua3CAN6W

    @CVEShield

    11 Jan 2026

    75 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  43. HackTheBox - Previous ⚙️ Authorization Bypass en Next.js (CVE-2025-29927) 📂 Descarga de archivos via Path Traversal 🔑 Credenciales para SSH 🚀 Privesc con sudo y Terraform https://t.co/qmQvcGDXzd

    @sckull_

    10 Jan 2026

    54 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  44. Previous from @hackthebox_eu features CVE-2025-29927 (NextJS middleware auth bypass), directory traversal for file read, and three ways to abuse a Terraform sudo rule with !env_reset to get root. https://t.co/8wz1Fnbz38

    @0xdf_

    10 Jan 2026

    1974 Impressions

    5 Retweets

    32 Likes

    8 Bookmarks

    1 Reply

    0 Quotes

  45. Best of 2025: CVE-2025-29927 – Understanding the Next.js Middleware Vulnerability - Security Boulevard https://t.co/7C55OcSEEd

    @PVynckier

    4 Jan 2026

    116 Impressions

    1 Retweet

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  46. Day 79 of #100DaysOfCybersecurity🛡️ Next.js CVE-2025-29927 lab completed ✅ Analyzed an authorization bypass where a crafted HTTP header skips middleware checks and exposes protected routes ⚠️ Affects Next.js versions before 14.2.25 and 15.2.3. Patch now. https://t.

    @HezyChacha

    31 Dec 2025

    23 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  47. I just completed Next.js: CVE-2025-29927 room on TryHackMe. Explore an authorisation bypass vulnerability in Next.js. https://t.co/VQjqTYrVDA #tryhackme via @tryhackme

    @HezyChacha

    31 Dec 2025

    36 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  48. به تازگی گروه هکری با نام PCPcat از دو آسیب پذیری با کد های شناسایی CVE-2025-29927 و CVE-2025-66478 برای نفوذ به سرورها استفاده می کنند. یکی از این آسیب پذیری ها مربوط به آسی

    @AmirHossein_sec

    25 Dec 2025

    57 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  49. Operation PCPcat Hacked 59,000+ Next.js/React Servers Within 48 Hours A massive credential-theft campaign dubbed PCPcat compromised 59,128 Next.js servers in under 48 hours. The operation exploits critical vulnerabilities CVE-2025-29927 and CVE-2025-66478, achieving a 64.6%

    @redhuvivek09

    25 Dec 2025

    161 Impressions

    0 Retweets

    3 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  50. 🚨 Operation PCPcat: Credential-Stealing Campaign Hijacks 59,000+ Next.js Servers via React/Next.js RCE A mass exploitation campaign is compromising internet-facing Next.js deployments by chaining CVE-2025-29927 and CVE-2025-66478 for RCE, then scraping high-value secrets (.env

    @ThreatSynop

    25 Dec 2025

    3 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

Configurations