Next.js vulnerabilities
54 known CVE vulnerabilities in Next.js, translated and rated.
- CVE-2025-49005Low
Next.js is a React framework for building full-stack web applications. In Next.js App Router from 15.3.0 to before 15.3.3 and Vercel CLI from 41.4.1 to 42.2.0, a cache poisoning vulnerability was found. The issue allowed page requests for HTML content to return a React Server Component (RSC) payload instead under certain conditions. When deployed to Vercel, this would only impact the browser cache and would not lead to the CDN being poisoned. When self-hosted and deployed externally, this could lead to cache poisoning if the CDN does not properly distinguish between RSC/HTML in the cache keys.
- CVE-2025-48068Medium
Next.js, a React framework for building full-stack web applications, in versions starting from 13.0 to before 14.2.30 and 15.0.0 to before 15.2.2, may have allowed limited source code exposure when the dev server was running with App Router enabled. The vulnerability only affects local development environments and requires the user to visit a malicious webpage while npm run dev is active. This issue has been patched in versions 14.2.30 and 15.2.2.
- CVE-2025-32421Low
Next.js versions prior to 14.2.24 and 15.1.6 have a race-condition vulnerability. Under certain misconfigurations, the Pages Router may serve pageProps data instead of standard HTML. The patch strips the x-now-route-matches header from incoming requests.
- CVE-2025-30218Medium
Next.js sends the x-middleware-subrequest-id header to all requests, including third-party hosts called from Middleware. This may leak the subrequest ID to external services. The vulnerability is fixed in versions 12.3.6, 13.5.10, 14.2.26, and 15.2.4.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

