CVE-2025-57752 in Vercel Next.Js
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 re...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Vercel | Next.Js | < 14.2.31 ≥ 15.0.0, < 15.4.5 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-57752 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-304338-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2025-08-29 |
| Last modified | 2026-10-18 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-524: CWE-524
Related attack patterns (CAPEC)
CAPEC-204 Lifting Sensitive Data Embedded in Cache via CWE-524
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Next.js versions before 14.2.31 and from 15.0.0 to before 15.4.5 are vulnerable to cache key confusion in the Image Optimization API routes, which could lead to unauthorized users receiving cached images intended for other users.
The vulnerability arises from the incorrect caching of image responses based on request headers such as Cookie or Authorization. This can result in sensitive images being served to unauthorized users, potentially leading to data leakage.
Questions
What is CVE-2025-57752?
Next.js versions before 14.2.31 and from 15.0.0 to before 15.4.5 are vulnerable to cache key confusion in the Image Optimization API routes, which could lead to unauthorized users receiving cached images intended for other users.
What is the CVSS score for CVE-2025-57752?
CVE-2025-57752 has CVSS 6.2 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.3%.
Is CVE-2025-57752 actively exploited?
No confirmed active exploitation of CVE-2025-57752 as of 2026-10-23.
How do I remediate CVE-2025-57752?
Priority: HIGH. Advisory: https://vercel.com/changelog/cve-2025-57752 PSIRT: [email protected]
What systems are affected by CVE-2025-57752?
CVE-2025-57752 affects Vercel Next.Js.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Vercel","product":"Next.Js","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-18.