Authorization Bypass in Next.js

Patch this weekData theft and tampering over the network, no login needed.
9.1CRITICAL

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

🥇 Trended No. 1📈 Trended📈 Score: 81,300👾 Exploit Exists🟡 Public PoC🟣 EPSS 99%📰 News Worthy

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
next.js >= 11.1.4, < 12.3.5 to below 11.1.4, 12.3.5 is vulnerable
next.js >= 14.0.0, < 14.2.25 to below 14.0.0, 14.2.25 is vulnerable
next.js >= 15.0.0, < 15.2.3 to below 15.0.0, 15.2.3 is vulnerable
next.js >= 13.0.0, < 13.5.9 to below 13.0.0, 13.5.9 is vulnerable

Install the next.js release that fixes your version line, or later:

11.1.4, 12.3.514.0.0, 14.2.2515.0.0, 15.2.313.0.0, 13.5.9
Read the vendor advisory ↗
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

  1. Unauthorized Access: Attackers can gain access to restricted areas of a Next.js application, potentially exposing sensitive data or functionality.

  2. 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

favicon imageeSecurity Planet

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.

favicon imageAmerican Hospital Association

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

SVG Injection in Satori Library

CVE-2026-94545
VercelSatori😄👾5.3MEDIUM

Path Traversal in Next.js Framework

CVE-2026-75604
VercelNext.js😄👾9CRITICAL

Server-Side Request Forgery in Next.js

CVE-2026-44578
VercelNext.js🔥😄👾8.6HIGH
View more Vercel vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

EPSS Score

99% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.