{"id":"GHSA-g5qg-72qw-gw5v","summary":"Next.js Affected by Cache Key Confusion for Image Optimization API Routes","details":"A vulnerability in Next.js Image Optimization has been fixed in v15.4.5 and v14.2.31. 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.\n\nAll users are encouraged to upgrade if they use API routes to serve images that depend on request headers and have image optimization enabled.\n\nMore details at [Vercel Changelog](https://vercel.com/changelog/cve-2025-57752)","aliases":["CVE-2025-57752"],"modified":"2026-09-10T03:50:26.953168554Z","published":"2025-08-29T22:06:22Z","database_specific":{"github_reviewed_at":"2025-08-29T22:06:22Z","nvd_published_at":"2025-08-29T22:15:31Z","cwe_ids":["CWE-524"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/vercel/next.js/security/advisories/GHSA-g5qg-72qw-gw5v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57752"},{"type":"WEB","url":"https://github.com/vercel/next.js/pull/82114"},{"type":"WEB","url":"https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd"},{"type":"PACKAGE","url":"https://github.com/vercel/next.js"},{"type":"WEB","url":"https://vercel.com/changelog/cve-2025-57752"}],"affected":[{"package":{"name":"next","ecosystem":"npm","purl":"pkg:npm/next"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.9"},{"fixed":"14.2.31"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-g5qg-72qw-gw5v/GHSA-g5qg-72qw-gw5v.json"}},{"package":{"name":"next","ecosystem":"npm","purl":"pkg:npm/next"},"ranges":[{"type":"SEMVER","events":[{"introduced":"15.0.0"},{"fixed":"15.4.5"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 15.4.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-g5qg-72qw-gw5v/GHSA-g5qg-72qw-gw5v.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}