Image Optimization API Vulnerability in Next.js by Vercel
CVE-2025-57752
What is CVE-2025-57752?
A cache key confusion vulnerability exists in the Next.js Image Optimization API routes, impacting versions before 14.2.31 and from 15.0.0 to before 15.4.5. This issue arises when images returned from API routes vary based on specific request headers, such as Cookie or Authorization. Consequently, these responses may be incorrectly cached, resulting in unauthorized users being served sensitive images. To mitigate this risk, users are strongly advised to update to Next.js versions 14.2.31 or 15.4.5 or later, especially if their applications utilize API routes reliant on such request headers for image optimization.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
next.js >= 15.0.0, < 15.4.5 < 15.0.0, 15.4.5
next.js < 14.2.31 < 14.2.31
References
CVSS V3.1
Timeline
Vulnerability published
Vulnerability Reserved