CVE-2025-57752: vercel next.js · Use of Cache Containing Sensitive Information
Affects vercel next.jsSource CVE Database V5
Not known to be exploited · CVSS 6.2 Medium : upgrade to 14.2.31 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 14.2.31
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade vercel next.js to 14.2.31.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| vercel next.js | Affected
| Fixed in
|
AI-suggested
1. Immediate upgrade: Organizations should upgrade all affected Next.js instances to versions 14.2.31 or 15.4.5 or later, where the vulnerability is patched. 2. Cache configuration review: Review and adjust cache key configurations to ensure that all headers influencing the response (e.g., Authorization, Cookie) are included in the cache key to prevent cross-user cache leakage. 3. Audit API routes: Identify all API routes serving images that vary based on request headers and verify that they are not vulnerable to cache key confusion. 4. Implement strict access controls: Restrict access to internal networks and API endpoints to reduce the risk of local attackers exploiting the vulnerability. 5. Monitoring and logging: Enable detailed logging of image API requests and cache hits/misses to detect anomalous access patterns that may indicate exploitation attempts. 6. Security testing: Conduct penetration testing focusing on cache behavior and header-based response variations to confirm the vulnerability is mitigated. 7. User education: Inform development teams about secure caching practices and the importance of including all relevant request headers in cache keys when serving sensitive content. 8. Incident response planning: Prepare to respond to potential data leakage incidents, including notification procedures compliant with GDPR.
Description
Next.js is a React framework for building full-stack web applications. In versions before 14.2.31 and from 15.0.0 to before 15.4.5, Next.js Image Optimization API routes are affected by cache key confusion. When images returned from API routes vary based on request headers (such as Cookie or Authorization), these responses could be incorrectly cached and served to unauthorized users due to a cache key confusion bug. This vulnerability has been fixed in Next.js versions 14.2.31 and 15.4.5. All users are encouraged to upgrade if they use API routes to serve images that depend on request headers and have image optimization enabled.