Authorization Bypass in Next.js
CVE-2025-29927
Key Information:
- Vendor
Vercel
- Status
- CVE ID
- CVE ID:
- CVE-2025-29927
- Vendor
- CVE Published:
- 21 March 2025
- Fixed in
- Fixed in:
- 11.1.4, 12.3.5, 14.0.0, 14.2.25, 15.0.0, 15.2.3 +1 more
Timeline
Exploit known 2 days after it was published
- 📰
First article discovered by The Hacker News
- 🟡
Public PoC available
- 👾
Exploit known to exist
- 🥇
Vulnerability reached the number 1 worldwide trending spot
- 📈
Vulnerability started trending
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (57 proof-of-concepts)
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
Install the next.js release that fixes your version line, or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach next.js. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Look for signs of compromise
Exploit code is public, so check logs on exposed next.js systems for unusual requests or new processes from before you patched. The 57 public proof-of-concepts show what an attack looks like.
4Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- EPSS gives it a 99.2% chance of exploitation in the next 30 days.
- Its CVSS severity is critical (9.1).
What is CVE-2025-29927?
CVE-2025-29927 is a critical vulnerability in the Next.js framework by Vercel, affecting versions prior to 12.3.5, 13.5.9, 14.2.25, and 15.2.3. The flaw allows attackers to bypass authorization checks in middleware by sending specially crafted HTTP requests with a specific header. This can lead to unauthorized access to sensitive resources within a Next.js application.
Potential Impact of CVE-2025-29927
-
Unauthorized Access: Attackers can gain access to restricted areas of a Next.js application, potentially exposing sensitive data or functionality.
-
Credential Harvesting: Exploitation of this vulnerability can facilitate broader attacks, such as credential harvesting from compromised servers.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
59K Servers Hacked in 48 Hours: Inside Operation PCPcat | eSecurity Planet
Operation PCPcat shows how unpatched Next.js vulnerabilities can be exploited to harvest cloud credentials at massive scale.
H-ISAC TLP White Threat Bulletin: Critical Authorization Bypass Vulnerability Announced For Next.js Middleware (CVE-2025-29927) | AHA
On March 23, 2025, a critical vulnerability in Next.js middleware was disclosed and tracked as CVE-2025-29927.
Next.js Middleware Flaw Lets Attackers Bypass Authorization
A critical vulnerability in Next.js middleware allows attackers unauthorized access and control, impacting all versions of the framework.
References
More Vercel Vulnerabilities
SVG Injection in Satori Library
Path Traversal in Next.js Framework
Server-Side Request Forgery in Next.js
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction