CVE-2025-29927Authorization Bypass in Next.js Middleware
- 9.1CriticalCVSS base score
- 99.2%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and an Exploit-DB entry for it.
Show the exploits3
Metasploit modules1 module
- Next.js Middleware Authorization Bypass Scanner (Metasploit module) (opens in a new tab)
auxiliary/scanner/http/nextjs_middleware_auth_bypassRank normaldisclosed 21 Mar 2025
Nuclei templates1 template
- Next.js Middleware Bypass (Nuclei template) (opens in a new tab)
http/cves/2025/CVE-2025-29927.yamlSeverity critical
Exploit-DB1 entry
- Next.js Middleware 15.2.2 - Authorization Bypass (Exploit-DB entry) (opens in a new tab)
EDB-ID 52124webapps, multiplepublished 5 Apr 2025Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 9 days later
· 9 days later
Published
- 18 days later
· 18 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVDNVD · Analyzed | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 99.2% · top 0.1% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References8
- https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw (opens in a new tab)x_refsource_CONFIRM
- https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2 (opens in a new tab)x_refsource_MISC
- https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48 (opens in a new tab)x_refsource_MISC
- https://github.com/vercel/next.js/releases/tag/v12.3.5 (opens in a new tab)x_refsource_MISC
- https://github.com/vercel/next.js/releases/tag/v13.5.9 (opens in a new tab)x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2025/03/23/3 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/03/23/4 (opens in a new tab)
- https://security.netapp.com/advisory/ntap-20250328-0002/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-7243 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-f82v-jwr5-mffw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-29927)Record last updated .