CVE-2025-29927 — Authorization Bypass in next — CVE Details
Authorization Bypass in Next.js Middleware
What Should I Do?
Fix in Your Next Sprint
This vulnerability has a 75.27% chance of being exploited within 30 days.
Does your project use an affected next version?
Paste your package-lock.json to check it for CVE-2025-29927 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
It is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware.
Patches
- For Next.js 15.x, this issue is fixed in
15.2.3 - For Next.js 14.x, this issue is fixed in
14.2.25 - For Next.js 13.x, this issue is fixed in 13.5.9
- For Next.js 12.x, this issue is fixed in 12.3.5
- For Next.js 11.x, consult the below workaround.
Note: Next.js deployments hosted on Vercel are automatically protected against this vulnerability.
Workaround
If patching to a safe version is infeasible, we recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application.
Credits
- Allam Rachid (zhero;)
- Allam Yasser (inzo_)
Advisory Timeline
- First published March 21, 2025 (615 days ago).
- Last revised September 10, 2026 — 538 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install next@14.2.25
npm install next@12.3.5
npm install next@15.2.3
npm install next@13.5.9
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: npm (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffwWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-29927ADVISORY
- https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2WEB
- https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48WEB
- https://github.com/vercel/next.jsPACKAGE
- https://github.com/vercel/next.js/releases/tag/v12.3.5WEB
- https://github.com/vercel/next.js/releases/tag/v13.5.9WEB
- https://security.netapp.com/advisory/ntap-20250328-0002WEB
- https://vercel.com/changelog/vercel-firewall-proactively-protects-against-vulnerability-with-middlewareWEB
- https://www.openwall.com/lists/oss-security/2025/03/23/3WEB
- https://www.openwall.com/lists/oss-security/2025/03/23/4WEB
Frequently Asked Questions
- What is CVE-2025-29927?
- Authorization Bypass in Next.js Middleware. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2025-29927?
- CVE-2025-29927 affects next. It has a 75.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-29927 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.7% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2026-64649HIGH
Next.js: Server-Side Request Forgery in Server Actions on custom servers
- GHSA-8h8q-6873-q5fjHIGH
Next.js Vulnerable to Denial of Service with Server Components
- CVE-2026-44578HIGH
Next.js vulnerable to server-side request forgery in applications using WebSocket upgrades
- CVE-2026-94483HIGH
Next.js has Server-Side Request Forgery in Image Optimization
- CVE-2024-56332MEDIUM
Next.js Allows a Denial of Service (DoS) with Server Actions
- CVE-2026-64643MEDIUM
Next.js: Unauthenticated disclosure of internal Server Function endpoints
- CVE-2025-59471MEDIUM
Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration
- CVE-2026-94485MEDIUM
Next.js has information disclosure in App Router metadata image routes via dynamicParams bypass