Next.js
Next.js: Middleware / Proxy bypass in Pages Router applications using i18n
Next.js is a React framework for building full-stack web applications. From 12.2.0 to before 15.5.16 and 16.2.5, Applications using the Pages Router with i18n configured and middleware/proxy-based authorization can allow unauthorized access to protected page data through locale-less /_next/data/<buildId>/<page>.json requests. In affected configurations, middleware does not run for the unprefixed data route, allowing an attacker to retrieve SSR JSON for protected pages without passing the intended authorization checks. This vulnerability is fixed in 15.5.16 and 16.2.5.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 12.2.0, < 15.5.16
- >= 16.0.0, < 16.2.5
Fixed in 15.5.16, 16.2.5
Mitigation
Upgrade next.js to 15.5.16 or 16.2.5 or later.
References
- Vendor advisory github.com/vercel/next.js/security/advisories/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.