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: 2025-08-29 Last update: 2025-09-08 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-57752 is rated Low Risk (30.7/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.05%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-57752

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-04 0.04% 0.05% +0.01%
2 2026-03-01 0.05% 0.04% -0.01%
3 2026-02-06 0.05%

Full EPSS history (4 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-57752

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.2 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
2.5 3.6 [email protected]

Weakness enumeration for CVE-2025-57752

GitHub Security Advisory for CVE-2025-57752

GHSA-g5qg-72qw-gw5v · Severity: medium · Ecosystem: npm — Next.js Affected by Cache Key Confusion for Image Optimization API Routes

OS Trackers for CVE-2025-57752

vendor priority summary link
redhat medium https://access.redhat.com/security/cve/CVE-2025-57752

Affected software / configurations for CVE-2025-57752

Vendor Product Version Raw CPE
vercel next.js < 14.2.31 cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*
vercel next.js >= 15.0.0, < 15.4.5 cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*

References for CVE-2025-57752

cvelogic Threat Intelligence