CVE-2025-57752
CVE-2025-57752 — Next.js Affected by Cache Key Confusion for Image Optimization API Routes
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.2
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.2 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-524
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1005Data from Local System
References
4 on the record
- github.com/vercel/next.js/security/advisories/GHSA-g5qg-72qw-gw5v
x_refsource_CONFIRM
- github.com/vercel/next.js/pull/82114
x_refsource_MISC
- github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd
x_refsource_MISC
- vercel.com/changelog/cve-2025-57752
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-29927 Authorization Bypass in Next.js MiddlewareCVSS 9.1
- CVE-2026-19202 Token Cache Reuse in mcp-toolbox-sdk-pythonCVSS 9.1
- CVE-2026-125089 The graphql-proxy-cache-advanced plugin in Kong Gateway Enterprise and Kong AI Gateway can serve a cached response to a GraphQL mutation…CVSS 8.3
- CVE-2026-123041 The request-callout plugin in Kong Gateway Enterprise and Kong AI Gateway omits callout headers not sent by the client from its cache key…CVSS 8.2
- CVE-2026-92443 The caching plugins in Kong Gateway Enterprise and Kong AI Gateway may serve a response cached for a request carrying an Authorization or…CVSS 8.2
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.