CVE-2025-32421
Next.js Race Condition to Cache Poisoning
Reported by github_m · Published May 14, 2025
next is fixed in 15.1.6 and 14.2.24 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| next | npm | 15.1.6, 14.2.24 |
| next.js | vercel | 15.1.6, 14.2.24 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | < 14.2.24, >= 15.0.0, < 15.1.6 |
| vercel | next.js | 0, 15.0.0 |
| npm | next | 0.9.9, 15.0.0 |
Timeline
- May 14, 2025 CVE Published
- May 15, 2025 EPSS Score (30 in total, the first dated here)
- May 15, 2025 Coalition ESS Score (13 in total, the first dated here)
- Dec 16, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-32421
vulnetix vdb fixes CVE-2025-32421
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-32421/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vercel/next.js/security/advisories/GHSA-qpjv-v59x-3qc4 x_refsource_CONFIRM
- https://vercel.com/changelog/cve-2025-32421 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-32421 advisory
- https://github.com/advisories/GHSA-qpjv-v59x-3qc4 advisory
- https://github.com/vercel/next.js url