CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2025 · Vercel

CVE-2025-57752
Vercel Next.js vulnerability

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.

Affected products

Next.js. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Vercel Next.js runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Vercel products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.