CVE-2025-57752
Full vulnerability record from the local CVENow database.
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.
Severity
MEDIUM
CVSS score
6.2
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2025-08-29 22:15:31.963000
Last modified
2026-10-18 21:10:00.120000
View original CVE JSON
{
"id": "CVE-2025-57752",
"sourceIdentifier": "[email protected]",
"published": "2025-08-29T22:15:31.963",
"lastModified": "2026-10-18T21:10:00.120",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Next.js es un framework de React para construir aplicaciones web full-stack. En versiones anteriores a la 14.2.31 y desde la 15.0.0 hasta la 15.4.5, las rutas de la API de optimización de imágenes de Next.js se ven afectadas por confusión de clave de caché. Cuando las imágenes devueltas desde las rutas de la API varían según los encabezados de solicitud (como Cookie o Autorización), estas respuestas podrían ser almacenadas en caché incorrectamente y servidas a usuarios no autorizados debido a un error de confusión de clave de caché. Esta vulnerabilidad ha sido corregida en las versiones 14.2.31 y 15.4.5 de Next.js. Se recomienda a todos los usuarios actualizar si utilizan rutas de la API para servir imágenes que dependen de los encabezados de solicitud y tienen la optimización de imágenes habilitada."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "vercel",
"product": "next.js",
"versions": [
{
"version": ">= 15.0.0, < 15.4.5",
"status": "affected"
},
{
"version": "< 14.2.31",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"baseScore": 6.2,
"baseSeverity": "MEDIUM",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.5,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-09-02T19:23:30.318403Z",
"id": "CVE-2025-57752",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-524"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*",
"versionEndExcluding": "14.2.31",
"matchCriteriaId": "88CF5491-9D3E-4538-B7F4-9B2FACB57878"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*",
"versionStartIncluding": "15.0.0",
"versionEndExcluding": "15.4.5",
"matchCriteriaId": "2FE23799-8927-4736-934B-BC2BB6F9BB63"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/vercel/next.js/commit/6b12c60c61ee80cb0443ccd20de82ca9b4422ddd",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/vercel/next.js/pull/82114",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/vercel/next.js/security/advisories/GHSA-g5qg-72qw-gw5v",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://vercel.com/changelog/cve-2025-57752",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
}
]
}