CVE-2025-32421 Details
Description
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.
A race condition vulnerability has been identified in Next.js, specifically in versions prior to 14.2.24 and 15.1.6. This issue affects the Pages Router under certain misconfigurations, causing standard endpoints to inadvertently serve `pageProps` data instead of regular HTML. The vulnerability arises from a race condition between two requests: one with the `?__nextDataRequest=1` query parameter and another with the `x-now-route-matches` header. Some Content Delivery Network (CDN) providers may cache `200 OK` responses without explicit `cache-control` headers, allowing poisoned responses to persist and be served to subsequent users.
Users can upgrade to Next.js versions 15.1.6 or 14.2.24 and later. For those unable to upgrade immediately, it is recommended to strip the `x-now-route-matches` header from incoming requests at the CDN and to set `cache-control: no-store` for all at-risk responses.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/next.js/security/advisories/GHSA-qpjv-v59x-3qc4 | [email protected] | Vendor Advisory |
| https://vercel.com/changelog/cve-2025-32421 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | < 14.2.24 >= 15.0.0, < 15.1.6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| May 14, 2025 | New CVE Received | [email protected] |