CVE-2025-29927Authorization Bypass in Next.js Middleware
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 75.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 75.3%
- percentile 100%
- Fix
- Named by a source
- CVE published 21 Mar 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 75.3% (+50) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- next (npm): upgrade to 13.5.9 / 14.2.25 / 15.2.3 / 12.3.5 or later on your release line.
- Patch: https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2
- Patch: https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48
- Advisory: https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
- Advisory: http://www.openwall.com/lists/oss-security/2025/03/23/3
- Advisory: https://security.netapp.com/advisory/ntap-20250328-0002/
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-29927
Who should check
next (npm) pkg:npm/next
- Affected>= 13.0.0, < 13.5.9Fixed in13.5.9OSV (GHSA-f82v-jwr5-mffw)
- Affected>= 14.0.0, < 14.2.25Fixed in14.2.25OSV (GHSA-f82v-jwr5-mffw)
- Affected>= 15.0.0, < 15.2.3Fixed in15.2.3OSV (GHSA-f82v-jwr5-mffw)
- Affected>= 12.0.0, < 12.3.5Fixed in12.3.5OSV (GHSA-f82v-jwr5-mffw)
vercel next.js product:vercel/nextjs
- Affected>= 11.1.4, < 12.3.5Affected range ends before12.3.5as published by CNA (CVE List)
- Affected>= 14.0.0, < 14.2.25Affected range ends before14.2.25as published by CNA (CVE List)
- Affected>= 15.0.0, < 15.2.3Affected range ends before15.2.3as published by CNA (CVE List)
- Affected>= 13.0.0, < 13.5.9Affected range ends before13.5.9as published by CNA (CVE List)
- Affected>= 11.1.4, < 12.3.5Affected range ends before12.3.5as published by CPE data (via the NVD API)
- Affected>= 13.0.0, < 13.5.9Affected range ends before13.5.9as published by CPE data (via the NVD API)
- Affected>= 14.0.0, < 14.2.25Affected range ends before14.2.25as published by CPE data (via the NVD API)
- Affected>= 15.0.0, < 15.2.3Affected range ends before15.2.3as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 9.1 CRITICAL (version 3.1)
- Score from
- CNA ([email protected])
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-285, CWE-863
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- yes
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 31 Mar 2025Exploitation more likely 32.1% → 84.7%
- 21 Mar 2025Published
References
- patchhttps://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2
- patchhttps://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48
- otherhttps://github.com/vercel/next.js/releases/tag/v12.3.5
- otherhttps://github.com/vercel/next.js/releases/tag/v13.5.9
- advisoryhttps://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
- advisoryhttp://www.openwall.com/lists/oss-security/2025/03/23/3
- otherhttp://www.openwall.com/lists/oss-security/2025/03/23/4
- advisoryhttps://security.netapp.com/advisory/ntap-20250328-0002/
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-29927
- otherhttps://github.com/vercel/next.js
- otherhttps://security.netapp.com/advisory/ntap-20250328-0002
- otherhttps://vercel.com/changelog/vercel-firewall-proactively-protects-against-vulnerability-with-middleware
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-29927 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-f82v-jwr5-mffw (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 51 min ago · osv 51 min ago · nvd 20 min ago · epss 50 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-f82v-jwr5-mffw