CVE-2025-29927
Authorization Bypass in Next.js Middleware
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
62Exploited in Wild
-Decision
Descriptions
Next.js is a React framework for building full-stack web applications. Prior to 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 14.2.25 and 15.2.3.
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.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2025-03-12 CVE Reserved
- 2025-03-21 CVE Published
- 2025-03-22 First Exploit
- 2025-04-08 CVE Updated
- 2025-04-09 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-285: Improper Authorization
CAPEC
References (67)
URL | Tag | Source |
---|---|---|
https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw | X_refsource_confirm | |
https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2 | X_refsource_misc | |
https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48 | X_refsource_misc | |
https://github.com/vercel/next.js/releases/tag/v12.3.5 | X_refsource_misc | |
https://github.com/vercel/next.js/releases/tag/v13.5.9 | X_refsource_misc |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Vercel Search vendor "Vercel" | Next.js Search vendor "Vercel" for product "Next.js" | >= 11.1.4 < 12.3.5 Search vendor "Vercel" for product "Next.js" and version " >= 11.1.4 < 12.3.5" | en |
Affected
| ||||||
Vercel Search vendor "Vercel" | Next.js Search vendor "Vercel" for product "Next.js" | >= 14.0.0 < 14.2.25 Search vendor "Vercel" for product "Next.js" and version " >= 14.0.0 < 14.2.25" | en |
Affected
| ||||||
Vercel Search vendor "Vercel" | Next.js Search vendor "Vercel" for product "Next.js" | >= 15.0.0 < 15.2.3 Search vendor "Vercel" for product "Next.js" and version " >= 15.0.0 < 15.2.3" | en |
Affected
| ||||||
Vercel Search vendor "Vercel" | Next.js Search vendor "Vercel" for product "Next.js" | >= 13.0.0 < 13.5.9 Search vendor "Vercel" for product "Next.js" and version " >= 13.0.0 < 13.5.9" | en |
Affected
|