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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.374% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.2 · published by GitHub_MCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:57:40.122Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:40.122Z | CVE Program |
| epss | verified | 2026-11-19T16:04:41.400Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:57.337Z | OSV |
| affected | verified | 2026-11-19T12:57:40.122Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:40.122Z | CVE Program |
Affected versions and configuration
vercel next.js; default status: unknown: >= 15.0.0, < 15.4.5 [affected; scheme: unspecified]; < 14.2.31 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "vercel",
"product": "next.js",
"versions": [
{
"status": "affected",
"version": ">= 15.0.0, < 15.4.5"
},
{
"status": "affected",
"version": "< 14.2.31"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-57752",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-09-02T19:23:30.318403Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-09-02T19:23:39.835Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-g5qg-72qw-gw5v",
"aliases": [
"CVE-2025-57752"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.9.9"
},
{
"fixed": "14.2.31"
}
]
}
],
"package": {
"name": "next",
"purl": "pkg:npm/next",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-g5qg-72qw-gw5v/GHSA-g5qg-72qw-gw5v.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "15.0.0"
},
{
"fixed": "15.4.5"
}
]
}
],
"package": {
"name": "next",
"purl": "pkg:npm/next",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-g5qg-72qw-gw5v/GHSA-g5qg-72qw-gw5v.json",
"last_known_affected_version_range": "<= 15.4.4"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/vercel/next.js/security/advisories/GHSA-g5qg-72qw-gw5v",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-57752",
"type": "ADVISORY"
},
{
"url": "https://github.com/vercel/next.js/pull/82114",
"type": "WEB"
},
{
"url": "https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd",
"type": "WEB"
},
{
"url": "https://github.com/vercel/next.js",
"type": "PACKAGE"
},
{
"url": "https://vercel.com/changelog/cve-2025-57752",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-524"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2025-08-29T22:15:31Z",
"github_reviewed_at": "2025-08-29T22:06:22Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | next | Not a distribution channel | 14.2.31 | Official record |
| ecosystem-boundary | npm / package | next | Not a distribution channel | 15.4.5 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:51:57.337ZArchived source JSON
Source publication: 2025-08-29T22:06:22.000Z
Source modification: 2026-09-10T03:50:26.953ZDocument fingerprint
7d4eb95abe8a9661807a717b59c5cebbe020ba401a580c1ab04c7b391af1539c - CVE ProgramConsulted: 2026-11-19T12:57:40.122ZArchived source JSON
Source publication: 2025-08-29T22:06:27.240Z
Source modification: 2025-09-02T19:23:39.835ZDocument fingerprint
65a7920b0212d6273b81dbb0ca6290f144dc491005abf22754f5c1452855f24c - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:41.400ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f09be0d3d341523449dfe0173665abd1b9add96747dee46d79511157a4bcd3c7
Official status history
- UNKNOWN → PUBLISHED · · evidence