CVE-2025-32421Vercel Next.js
Low 3.7 No auth needed
Follow: this CVE · Vercel · Vercel Next.js We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.1
- 3.7
- EPSS
- —
- Auth required
- No
- Published
- May 14, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-362
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
Next.js is a React framework for building full-stack web applications. Versions prior to 14.2.24 and 15.1.6 have a race-condition vulnerability. This issue only affects the Pages Router under certain misconfigurations, causing normal endpoints to serve `pageProps` data instead of standard HTML. This issue was patched in versions 15.1.6 and 14.2.24 by stripping the `x-now-route-matches` header from incoming requests. Applications hosted on Vercel's platform are not affected by this issue, as the platform does not cache responses based solely on `200 OK` status without explicit `cache-control` headers. Those who self-host Next.js deployments and are unable to upgrade immediately can mitigate this vulnerability by stripping the `x-now-route-matches` header from all incoming requests at the content development network and setting `cache-control: no-store` for all responses under risk. The maintainers of Next.js strongly recommend only caching responses with explicit cache-control headers.
What to do
- Apply the vendor's security update for Next.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | next |
≥ 0.9.9 < 14.2.24 |
14.2.24 |
npm install next@14.2.24 |
| npm | next |
≥ 15.0.0 < 15.1.6 |
15.1.6 |
npm install next@15.1.6 |
Per OSV / GitHub Advisories (GHSA-qpjv-v59x-3qc4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | < 14.2.24 |
| vercel | next.js | ≥ 15.0.0 < 15.1.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory
- vercel.com Vendor Advisory