Cold-Try

#7938of 56,326
36.9Total CVSS
Vulnerabilities · 5
Low
1
High
3
Critical
1
PT-2025-19996
3.7
2025-05-06
Vercel · Next.Js · CVE-2025-32421
**Name of the Vulnerable Software and Affected Versions** Next.js versions prior to 14.2.24 and versions 15.0.0 through 15.1.6 **Description** Next.js, a React framework for building full-stack web applications, contains a race-condition issue affecting the Pages Router under specific misconfigurations. This allows normal endpoints to serve `pageProps` data instead of standard HTML. The issue arises from concurrent requests and can lead to cache poisoning. Applications hosted on Vercel's platform are not affected, as they do not cache responses based solely on `200 OK` status without explicit `cache-control` headers. The vulnerability is triggered when two simultaneous requests with the same `cacheKey` (e.g., `/ error-0`) occur, where the first request results in an error and the second receives `pageProps` in text/html format. If `pageProps` contains data from the request (like `User-Agent` or `Cookie`), this can result in Stored Cross-Site Scripting (XSS). The `x-now-route-matches` header plays a role in the vulnerability, and stripping this header from incoming requests can mitigate the issue. **Recommendations** For versions prior to 14.2.24, upgrade to version 14.2.24 or later. For versions 15.0.0 through 15.1.6, upgrade to version 15.1.6 or later. If immediate upgrade is not possible, strip the `x-now-route-matches` header from all incoming requests at the content delivery network. Set `cache-control: no-store` for all responses at risk.
PT-2025-12427
9.4
2025-03-21
Next.Js · Next.Js · CVE-2025-29927
**Name of the Vulnerable Software and Affected Versions** Next.js versions 1.11.4 through 12.3.4 Next.js versions 13.0.0 through 13.5.8 Next.js versions 14.0.0 through 14.2.24 Next.js versions 15.0.0 through 15.2.2 **Description** An authorization bypass exists in the Next.js middleware processing mechanism. By sending a specially crafted HTTP request containing the `x-middleware-subrequest` header, a remote attacker can trick the application into treating the request as if it has already passed through the middleware checks. This allows the attacker to bypass authentication enforcement, session validation, rate-limiting, and path rewrites. Additionally, this flaw can be used to bypass Content-Security-Policy (CSP) headers or trigger a Denial-of-Service (DoS) via cache poisoning. Real-world exploitation has been observed by threat actors, including the TeamPCP group, who target admin panels and API routes gated by session tokens. Next.js deployments hosted on Vercel are automatically protected. **Recommendations** Update Next.js to version 12.3.5 or later. Update Next.js to version 13.5.9 or later. Update Next.js to version 14.2.25 or later. Update Next.js to version 15.2.3 or later. As a temporary workaround, prevent external user requests containing the `x-middleware-subrequest` header from reaching the application. Implement authorization checks at the route level in addition to middleware to provide defense-in-depth.