CVE-2025-29927
Exploitation confirmed. First attested on 2025-04-24 by GCVE · kevintel, GCVE · shadowserver.
- Published2025-03-21
- Fixed in15.2.3 · 14.2.25 · 13.5.9 · 12.3.5
- WeaknessCWE-285 · CWE-863
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-03-2115:15CVE publishedNVD
- 2025-04-05Exploit-DB entryExploit-DB
- 2025-04-2410:37Listed as exploited by GCVEGCVE
- 2025-04-2410:37Exploitation first reportedGCVE
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 15.x | ≥ 15.0.0, < 15.2.3 | 15.2.3 | NVD · OSV |
| 14.x | ≥ 14.0.0, < 14.2.25 | 14.2.25 | NVD · OSV |
| 13.x | ≥ 13.0.0, < 13.5.9 | 13.5.9 | NVD · OSV |
| 12.3 | ≥ 11.1.4, < 12.3.5 | 12.3.5 | NVD |
| 12.x | ≥ 12.0.0, < 12.3.5 | 12.3.5 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- vercel next.jsAffected
- = >= 11.1.4, < 12.3.5no fix stated
- = >= 14.0.0, < 14.2.25no fix stated
- = >= 15.0.0, < 15.2.3no fix stated
- = >= 13.0.0, < 13.5.9no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-04-08
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @rootio/nextRoot:npmall versions · fixed in 12.3.4-root.io.4
- @rootio/nextRoot:npmall versions · fixed in 14.2.5-root.io.5
- @rootio/nextRoot:npmall versions · fixed in 12.1.0-root.io.1
- @rootio/nextRoot:npmall versions · fixed in 12.1.0-root.io.2
- @rootio/nextRoot:npmall versions · fixed in 12.1.5-root.io.1
- @rootio/nextRoot:npmall versions · fixed in 12.1.5-root.io.2
- @rootio/nextRoot:npmall versions · fixed in 12.1.6-root.io.1
- @rootio/nextRoot:npmall versions · fixed in 12.1.6-root.io.2
274 more package ranges on OSV.dev
Vendor advisories
- CVE-2025-29927 Red Hat Product Security
nextjs: Authorization Bypass in Next.js Middleware
Fix
- Update Next.js to 15.2.3 · 14.2.25 · 13.5.9 · 12.3.5
Advisories and patches
- github.comPatch
- github.comPatch
- github.comRelease Notes
- github.comRelease Notes
- github.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- available ProjectDiscovery
- Proof of concept
- PoC-in-GitHub20 repositories, unverifiedknown since 2026-11-01serhalp/test-cve-2025-29927Ademking/CVE-2025-299276mile/nextjs-CVE-2025-29927azu/nextjs-cve-2025-29927-poclirantal/vulnerable-nextjs-14-CVE-2025-29927
- Metasploit modules
- 1 moduleauxiliary/scanner/http/nextjs_middleware_auth_bypassrank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- GCVEexploitation2025-04-24
- CISA-ADPSSVC decisionnone2025-04-08
- CNACVSS 3.19.1known since 2026-10-23
- CNAweakness (CWE)CWE-285known since 2026-10-23
- NVDweakness (CWE)CWE-863read 2026-10-23
- FIRST EPSSEPSS score99.2 %read 2026-11-20
- PoC-in-GitHubproof of concept20known since 2026-11-01
- Exploit-DBdetectionread 2026-11-20
- ProjectDiscoverydetectionread 2026-11-20
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCritical2025-03-21
Identifiers
- CGA-38hr-jp5g-rw4csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5c99-2rqx-3v42same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gjg2-6vp7-3v3gsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-7243same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-f82v-jwr5-mffwsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-fwhh-grf5-h64vsame flawMinimOS · LicenseRef-unstated
- auxiliary/scanner/http/nextjs_middleware_auth_bypassexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Published
- 2025-03-21
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-f82v-jwr5-mffw
Frequently asked questions
What is CVE-2025-29927?
Is CVE-2025-29927 actively exploited?
What is the CVSS score for CVE-2025-29927?
Running Next.js? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-f82v-jwr5-mffw
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0