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.
CVE-2025-29927
This critical-severity CVE scores 9.1 under NVD CVSS v3. EPSS exploit probability: 99.3%, top 0% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High exploitation likelihood — EPSS 99%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.1
- EG Score
- 9.1(low)
- EG Risk
- 96(Track)EG Risk 96/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity91% × 45%Exploitation99% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 99.9%
- KEV
- Not listed
Published
March 21, 2025
Last Modified
September 10, 2025
Advisory Details (8)
Auto-updated Jul 23, 2026oss-security - Re: CVE-2025-29927: Authorization Bypass in Next.js Middleware
http://www.openwall.com/lists/oss-security/2025/03/23/4oss-security - CVE-2025-29927: Authorization Bypass in Next.js Middleware
http://www.openwall.com/lists/oss-security/2025/03/23/3Authorization Bypass in Next.js Middleware · Advisory · vercel/next.js · GitHub
Affected: 13.5.9
https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffwv13.5.9
Patch available: vercel/next.js v13.5.9
https://github.com/vercel/next.js/releases/tag/v13.5.9v12.3.5
Patch available: vercel/next.js v12.3.5
https://github.com/vercel/next.js/releases/tag/v12.3.5commit 5fd3ae8f8542 (vercel/next.js)
Fix landed in vercel/next.js commit 5fd3ae8f8542 — awaiting tagged release
https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48commit 52a078da3884 (vercel/next.js)
Fix landed in vercel/next.js commit 52a078da3884 — awaiting tagged release
https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| next | — | 12.3.5 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 1× in last 7d / 7× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-23 02:52 UTCEG score recompute
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-07 06:51 UTCOSV refresh
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-18 18:05 UTCOSV refresh
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-05-30 09:03 UTCEG score recompute
- 2026-05-29 15:27 UTCOSV refresh
Show 1 moreShow fewer
- 2026-05-29 13:44 UTCEPSS rescore
Publicly available exploits
(10 references)Working exploit code is in the public domain (9 GitHub PoCs) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCUNICORDev/exploit-CVE-2025-29927First seen Apr 14, 2025
Exploit for CVE-2025-29927 (Next.js) - Authorization Bypass
Open source ↗ - GitHub PoCgotr00t0day/CVE-2025-29927First seen Apr 6, 2025
Next.js Middleware Bypass Scanne
Open source ↗ - Exploit-DBEDB-52124First seen Apr 5, 2025
Next.js Middleware 15.2.2 - Authorization Bypass
Open source ↗ - GitHub PoCAnonKryptiQuz/NextSploitFirst seen Mar 28, 2025
NextSploit is a command-line tool designed to detect and exploit CVE-2025-29927, a security flaw in Next.js
Open source ↗ - GitHub PoCKaztoRay/CVE-2025-29927-ResearchFirst seen Mar 27, 2025
CVE-2025-29927에 대한 설명 및 리서치
Open source ↗ - GitHub PoCkOaDT/poc-cve-2025-29927First seen Mar 26, 2025
This repository contains a proof of concept (POC) and an exploit script for CVE-2025-29927, a critical vulnerability in Next.js that allows attackers to bypass authorization checks implemented in middleware.
Open source ↗ - GitHub PoCphoscoder/ghost-routeFirst seen Mar 25, 2025
Ghost Route detects if a Next JS site is vulnerable to the corrupt middleware bypass bug (CVE-2025-29927)
Open source ↗ - Open source ↗GitHub PoClirantal/vulnerable-nextjs-14-CVE-2025-29927First seen Mar 23, 2025
- GitHub PoCaydinnyunus/CVE-2025-29927First seen Mar 23, 2025
CVE-2025-29927 Proof of Concept
Open source ↗ - GitHub PoC6mile/nextjs-CVE-2025-29927First seen Mar 23, 2025
A Nuclei template to detect CVE-2025-29927 the Next.js authentication bypass vulnerability
Open source ↗
Related CVEs(same CWE)
Same CWE
10 shownCWE-863 · CWE-285
Frequently asked(5)
What is CVE-2025-29927?
When was CVE-2025-29927 disclosed?
Is CVE-2025-29927 actively exploited?
What is the CVSS score of CVE-2025-29927?
How do I remediate CVE-2025-29927?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-29927
Is Your Infrastructure Affected by CVE-2025-29927?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.