CVE-2025-29927: Next.js Middleware Authorization Bypass
- Vendor
- Vercel
CVE-2025-29927 is an authorization bypass vulnerability in Next.js middleware. Vulnerable releases trust the internal x-middleware-subrequest HTTP header supplied in external requests. An attacker can craft this header to cause middleware processing to be skipped, bypassing authentication, authorization, and other security controls implemented exclusively at that layer. Fixes are available in Next.js 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Unauthenticated remote attackers may access protected application resources and invoke functionality whose authorization checks are enforced exclusively by middleware, potentially compromising data confidentiality and integrity. Depending on application behavior, skipping middleware may also bypass Content Security Policy enforcement or enable cache-poisoning-related denial of service. The vulnerability does not itself provide arbitrary code execution.
Mitigation
If you can’t patch tonight, do this now.
Prevent external requests containing the x-middleware-subrequest header from reaching the Next.js application, using a reverse proxy, load balancer, or web application firewall. Ensure this control covers every externally reachable application entry point. Vercel-hosted deployments were automatically protected against this vulnerability. As defense in depth, enforce authorization at protected application operations rather than relying exclusively on middleware.
Remediation
Patch, then assume compromise.
Upgrade Next.js to a current supported release containing the fix. Minimum fixed releases are 12.3.5 for the 12.x branch, 13.5.9 for 13.x, 14.2.25 for 14.x, and 15.2.3 for 15.x. No fixed 11.x release is identified; migrate to a patched supported release and apply the header-blocking workaround until migration is complete.
Exploits
75 exploits validated by Mallory's analysis. Hidden: 70 rejected by Mallory's analysis as not a working exploit; 5 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-29927 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-29927?
- Yes. Mallory tracks 75 public exploits or proofs of concept for CVE-2025-29927, the earliest disclosed Mar 23, 2025.
- Is there a patch for CVE-2025-29927?
- Upgrade Next.js to a current supported release containing the fix. Minimum fixed releases are 12.3.5 for the 12.x branch, 13.5.9 for 13.x, 14.2.25 for 14.x, and 15.2.3 for 15.x.
- What products are affected by CVE-2025-29927?
- Vercel Next.Js.
- How severe is CVE-2025-29927?
- CVE-2025-29927 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 75.3% (100th percentile) as of Nov 28, 2026.
Recent activity
122 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.