{"cve":"CVE-2025-57752","nvd":{"published":"2025-08-29T22:15:31.963","modified":"2026-10-18T21:10:00.120","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":6.2},"cwes":["CWE-524"],"references":["https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd","https://github.com/vercel/next.js/pull/82114","https://github.com/vercel/next.js/security/advisories/GHSA-g5qg-72qw-gw5v","https://vercel.com/changelog/cve-2025-57752"],"products":["vercel:next.js"],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-57752","score":0.00347,"percentile":0.27988,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-g5qg-72qw-gw5v","url":"https://osv.dev/vulnerability/GHSA-g5qg-72qw-gw5v","summary":"Next.js Affected by Cache Key Confusion for Image Optimization API Routes","modified":"2026-09-10T03:50:26.953168554Z","packages":[{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=0.9.9 <14.2.31"],"fixed":["14.2.31"]},{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=15.0.0 <15.4.5"],"fixed":["15.4.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}