CVE-2025-57752Vercel Next.js
Medium 6.2
Follow: this CVE · Vercel · Vercel Next.js We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.1
- 6.2
- EPSS
- —
- Auth required
- Yes
- Published
- Aug 29, 2025
- Updated
- Oct 18, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-524
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Next.js.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | next |
≥ 0.9.9 < 14.2.31 |
14.2.31 |
npm install next@14.2.31 |
| npm | next |
≥ 15.0.0 < 15.4.5 |
15.4.5 |
npm install next@15.4.5 |
Per OSV / GitHub Advisories (GHSA-g5qg-72qw-gw5v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | < 14.2.31 |
| vercel | next.js | ≥ 15.0.0 < 15.4.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Vendor Advisory
- vercel.com Vendor Advisory