CRITICAL✓ PATCH🇵🇱 Wersja polska

CVE-2025-29927

CVSS 9.1v3.1pub. 2025-03-21upd. 2025-09-10

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.

🤖 AI Analysis
How it works

An attacker sends an HTTP request containing a specially crafted x-middleware-subrequest header. Next.js treats such a request as an internal middleware subrequest and skips the execution of authorization logic defined in the middleware layer. As a result, access controls — regardless of their implementation — are ignored, and the request reaches protected resources without permission verification. The issue affects all authorization checks placed solely in middleware.

Impact

An attacker can gain unauthorized access to protected application resources and manipulate data to which they should not normally have permissions, which constitutes a breach of confidentiality and integrity (CWE-285, CWE-863).

Mitigation & patch

Next.js should be updated to version 12.3.5, 13.5.9, 14.2.25, or 15.2.3. If an immediate update is not possible, the vendor recommends blocking at the infrastructure level (reverse proxy, firewall, load balancer) all incoming external requests containing the x-middleware-subrequest header, so they do not reach the Next.js application.

Who is affected

Next.js versions from 1.11.4 to 12.3.4, from 13.0.0 to 13.5.8, from 14.0.0 to 14.2.24, and from 15.0.0 to 15.2.2 — all variants based on Vercel's Next.js framework where authorization logic is implemented in middleware.

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Vercel Next.js

    APP
    Vercel
    11.1.4 – 12.3.5 (excl.)13.0.0 – 13.5.9 (excl.)14.0.0 – 14.2.25 (excl.)15.0.0 – 15.2.3 (excl.)
🟢
PATCH AVAILABLE
Vendor update available. Deploy in standard maintenance cycle.
CWE
References

Related vulnerabilities

CVE-2025-55182CRITICAL10.0⚠ KEVPL ✓same product

RCE bez uwierzytelnienia w React Server Components (deserializacja)

CVE-2026-64645HIGH8.3PL ✓same product

Next.js: SSRF i Open Redirect przez niekontrolowane reguły rewrites/redirects

CVE-2026-64642HIGH8.3PL ✓same product

Ominięcie uwierzytelniania middleware w Next.js App Router z Turbopack

CVE-2026-64641HIGH8.2PL ✓same product

Vercel Next.js — nadmierne zużycie CPU przez spreparowane żądania (DoS)

CVE-2026-64649HIGH8.3PL ✓same product

SSRF w Next.js — przekierowanie żądań przez Server Actions do złośliwego hosta