Read the docs
TI-2025-35637 Aliases CVE-2025-57752GHSA-g5qg-72qw-gw5v

Next.js Affected by Cache Key Confusion for Image Optimization API Routes

Priority LOW 28CWE-524Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 7 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00347 28th percentileScored 2026-11-07
Fix Partial next.js (vercel): 15.4.5, 14.2.31next (npm): 14.2.31, 15.4.5Red Hat: 7 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
vercelnext.js15.0.0 to before 15.4.5; before 14.2.3115.4.5, 14.2.31Patch availableCNA
—next (npm)0.9.9 to before 14.2.3114.2.31Patch availableGHSA-g5qg-72qw-gw5v
—next (npm)15.0.0 to before 15.4.515.4.5Patch availableGHSA-g5qg-72qw-gw5v
  • next.js Vendorvercel Affected 15.0.0 to before 15.4.5; before 14.2.31 Fixed in 15.4.5, 14.2.31 Patch available CNA
  • next (npm) Vendor— Affected 0.9.9 to before 14.2.31 Fixed in 14.2.31 Patch available GHSA-g5qg-72qw-gw5v
  • next (npm) Vendor— Affected 15.0.0 to before 15.4.5 Fixed in 15.4.5 Patch available GHSA-g5qg-72qw-gw5v

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*before 14.2.31; 15.0.0 to before 15.4.5Vulnerablevercel
  • cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* Versions before 14.2.31; 15.0.0 to before 15.4.5 Vulnerable ·vercel

Remediation

  • Fix · CNA next.js (vercel) Fixed in 15.4.5, 14.2.31
  • Fix · GHSA-g5qg-72qw-gw5v next (npm) Fixed in 14.2.31 Advisory →
  • Fix · GHSA-g5qg-72qw-gw5v next (npm) Fixed in 15.4.5 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 7AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat Trusted Artifact SignerAffectedNo fix yet: Fix deferred
streams for Apache Kafka 2AffectedNo fix yet: Fix deferred
streams for Apache Kafka 3AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-57752
  2. 2026-10-03 Alias added: GHSA-g5qg-72qw-gw5v

References

  • TI-2025-34861 Deserialization of untrusted data in Meta react-server-dom-webpack KEVCVSS 3.1CRITICAL 10.0
  • TI-2025-21309 Authorization Bypass in Next.js Middleware CVSS 3.1CRITICAL 9.1
  • TI-2025-34863 Deserialization of untrusted data in Meta react-server-dom-webpack CVSS 3.1HIGH 7.5
  • TI-2024-31371 Cache Poisoning in next.js CVSS 3.1HIGH 7.5
  • TI-2023-24914 Next.js before 13.4.20-canary.13 lacks a cache-control header and thus empty prefetch… CVSS 3.1HIGH 7.5
  • TI-2026-32490 Next.js: Server-side request forgery in applications using WebSocket upgrades CVSS 3.1HIGH 8.6
See all 62 →

Sources