CVE-2025-57752
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-08-29
- Last modified
- 2026-10-18
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.3 %
higher than 28 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Vercel | Next.js | < 14.2.31 | Affected |
| Vercel | Next.js | ≥ 15.0.0, < 15.4.5 | Affected |
Weakness type
-
CWE-524: Use of Cache Containing Sensitive Information
The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1005: Data from Local System
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
Related at Berigo
Articles
-
Vercel confirms breach following compromised third-party integration
Same product
2026-04-19
Attackers used a compromised AI tool connected through Google Workspace OAuth to gain limited access to Vercel's internal systems.
-
The RondoDox botnet is exploiting a Next.js vulnerability
Same product
2025-12-29
CloudSEK describes a nine-month campaign now exploiting CVE-2025-55182 in Next.js to deploy payloads and cryptominers on vulnerable servers.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.