CVE-2025-29927
nextjs: Authorization Bypass in Next.js Middleware
Overview
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: OX vulnerability database
Severity
9.1 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness: CWE-285, CWE-863
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | next | >=13.0.0, <13.5.9>=14.0.0, <14.2.25>=15.0.0, <15.2.3>=12.0.0, <12.3.5 | 13.5.914.2.2515.2.312.3.5 |
Open a package to see all its vulnerabilities.
Operating systems · 3 fixes
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| jitsucom-jitsu | 2.9.0-r0 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| trigger-dev | 4.5.0-r0 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| jitsucom-jitsu | 2.9.0-r0 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2025/03/23/3
- www.openwall.com http://www.openwall.com/lists/oss-security/2025/03/23/4
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-29927
- github.com https://github.com/vercel/next.js
- github.com https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2
- github.com https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48
- github.com https://github.com/vercel/next.js/releases/tag/v12.3.5
- github.com https://github.com/vercel/next.js/releases/tag/v13.5.9
- github.com https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
- jfrog.com https://jfrog.com/blog/cve-2025-29927-next-js-authorization-bypass/
Show all 15 references
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-29927
- security.netapp.com https://security.netapp.com/advisory/ntap-20250328-0002
- security.netapp.com https://security.netapp.com/advisory/ntap-20250328-0002/
- vercel.com https://vercel.com/changelog/vercel-firewall-proactively-protects-against-vulnerability-with-middleware
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-29927
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.