{ "canonical_id": "nextjs--CVE-2025-57752", "system_id": "nextjs", "display_name": "Next.js", "category": "frameworks", "advisory_mode": "core", "title": "Next.js Affected by Cache Key Confusion for Image Optimization API Routes", "summary": "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)", "published_at": "2025-08-29T22:06:22Z", "updated_at": "2026-02-04T02:50:08.291668Z", "severity": "low", "cvss_score": 3.1, "exploit_status": "unknown", "source_confidence": "official", "official_source_url": "https://github.com/vercel/next.js/security/advisories/GHSA-g5qg-72qw-gw5v", "secondary_source_urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2025-57752", "https://github.com/vercel/next.js/pull/82114", "https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd", "https://github.com/vercel/next.js", "https://vercel.com/changelog/cve-2025-57752" ], "aliases": [ "CVE-2025-57752", "GHSA-g5qg-72qw-gw5v" ], "cve_ids": [ "CVE-2025-57752" ], "ghsa_ids": [ "GHSA-g5qg-72qw-gw5v" ], "osv_ids": [ "GHSA-g5qg-72qw-gw5v" ], "affected_versions": [ "introduced=0.9.9, fixed<14.2.31", "introduced=15.0.0, fixed<15.4.5" ], "fixed_versions": [ "14.2.31", "15.4.5" ], "package_name": "next", "render_markdown": true, "case_path": "07-framework-security/frameworks/nextjs/cases/nextjs-cve-2025-57752.md", "secure_code_topics": [ "authz-server-side-recheck", "proxy-trust-boundary", "token-cookie-storage" ], "status": "generated", "triage_reasons": [], "metadata": { "source_names": [ "OSV Next.js" ], "source_kinds": [ "osv-batch" ], "candidate_count": 1 } }