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. Warning: The "React2STEAL" campaign is mass-exploiting Next.js/React apps still unpatched for React2Shell (CVE-2025-55182) and CVE-2025-29927, then leaking stolen .env files and cloud/AI keys. Fix is out: upgrade React/Next.js and rotate secrets. https://t.co/qqNQZeZ9aJ

    @CitePulseAI

    19 Nov 2026

    11 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  2. React2STEAL: 45 repos de GitHub (ci-wk-) usan GitHub Actions para explotar Next.js con React2Shell (CVE-2025-55182) y CVE-2025-29927, robar .env y claves AWS/IA y guardar el botín en el repo. 1.281+ víctimas; actor desconocido. #ciberseguridad #IOC https://t.co/QNIf6F9XS4

    @l0rdmalware

    18 Nov 2026

    49 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  3. 👀 React2STEAL: hijacked GitHub accounts mass-exploit unpatched Next.js servers and publish the stolen secrets. If your Next.js or React Server Components app is still open to React2Shell or CVE-2025-29927, your env vars, AWS role credentials, Stripe and AI keys may already be

    @infrastack_ai

    18 Nov 2026

    49 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  4. ⚠️ CVE-2025-29927: Vercel Next.js improper access control allows auth bypass in middleware, leading to elevation of privilege. CVSS 9.1 (High), EPSS 99.2%, public exploit available. Patch now.… #CVE_2025_29927 https://t.co/O2f513oph9 https://t.co/8ikuP81LEJ

    @VulnHero_Alert

    16 Nov 2026

    176 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  5. Next.js 認可バイパス CVE-2025-29927 https://t.co/wi8Cma1cuJ

    @peaks2314

    15 Nov 2026

    227 Impressions

    0 Retweets

    0 Likes

    1 Bookmark

    0 Replies

    0 Quotes

  6. 🚨 ANOTHER CRITICAL NEXT.JS VULNERABILITY: A 9.1/10 severity vulnerability in Next.js allows attackers to bypass authentication and access protected areas of websites without logging in. CVE-2025-29927 affects applications that rely on Next.js middleware for security and acces

    @markgadala

    15 Nov 2026

    2360 Impressions

    3 Retweets

    7 Likes

    2 Bookmarks

    2 Replies

    0 Quotes

  7. 🚨 A Next.js middleware flaw can let unauthenticated attackers bypass authorization checks; CVE-2025-29927 PoC: https://t.co/vkyrBebqgr The vulnerability affects applications that rely on Next.js middleware for access control. By abusing the x-middleware-subrequest header, an

    @DarkWebInformer

    15 Nov 2026

    71203 Impressions

    109 Retweets

    735 Likes

    458 Bookmarks

    17 Replies

    15 Quotes

  8. If your Next.js auth check lives only in middleware, check your version. CVE-2025-29927 let one request header, x-middleware-subrequest, skip middleware entirely. Upgrade to 15.2.3, 14.2.25 or 13.5.9 or later, and check auth where data is read too. https://t.co/i2yLVwJaiO

    @TheIOnProject_

    10 Nov 2026

    120 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  9. 📄 New Snippet: CVE-2025-29927 🗣 Language: javascript (Nodejs) 📊 Difficulty: Medium 🔗 https://t.co/xqAl1HubKQ #AppSec #WebSecurity #CTF #BugBounty

    @AppSecMaster_

    7 Nov 2026

    322 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  10. 🔴 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

  11. 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

  12. 🔴 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

  13. 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

  14. 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

  15. 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

  16. 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

  17. 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

  18. @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

  19. ‼️🇺🇸 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

  20. 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

  21. 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

  22. 【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

  23. 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

  24. 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

  25. 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

  26. 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

  27. 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

  28. 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

  29. 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

  30. 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

  31. 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

  32. 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

  33. 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

  34. 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

  35. 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

  36. "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

  37. 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

  38. 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

  39. 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

  40. [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

  41. 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

  42. 【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

  43. 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

  44. 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

  45. 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

  46. 🚨 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

  47. 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

  48. 🚨 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

  49. 🚨 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

  50. 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

Configurations