CVE-2025-57752: vercel next.js
Vulnerability summary
CVE-2025-57752 is a medium (CVSS 6.2) vulnerability in vercel next.js. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 26.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 29-08-2025PublishedVulnerability first disclosed.
- 02-09-2025Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · WolfiEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · NpmEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.35%
Chance of exploitation in the next 30 days
Percentile
27%
Versus all other CVEs
30-day change
0.00 pp
From 0.35% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- jitsucom-jitsu< 2.11.0-r1
- jitsucom-jitsu-console< 2.11.0-r1
- jitsucom-jitsu-rotor< 2.11.0-r1
Wolfi3 products
- jitsucom-jitsu< 2.11.0-r1
- jitsucom-jitsu-console< 2.11.0-r1
- jitsucom-jitsu-rotor< 2.11.0-r1
Npm1 product
- next≥ 0.9.9, < 14.2.31 | ≥ 15.0.0, < 15.4.5
Vercel1 product
- next.js< 14.2.31 | ≥ 15.0.0, < 15.4.5
4 vendors · 8 products
References
7 links- github.com/vercel/next.js/security/advisories/GHSA-g5qg-72qw-gw5vX Refsource CONFIRMAdvisoryWEBVendor Advisory
- github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422dddX Refsource MISCFIXWEBPatch
- github.com/vercel/next.jsPACKAGE