VDB

CVE-2025-32421

CVE-2025-32421 PUBLISHED CVSS 3.7 LOW

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.

PackageEcosystemFixed in
nextnpm15.1.6, 14.2.24
next.jsvercel15.1.6, 14.2.24

Risk scores

CVSS 3.1
3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected products

VendorProductVersions
vercelnext.js< 14.2.24, >= 15.0.0, < 15.1.6
vercelnext.js0, 15.0.0
npmnext0.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›