CVE-2025-57822
Full vulnerability record from the local CVENow database.
Description
Next.js is a React framework for building full-stack web applications. Prior to versions 14.2.32 and 15.4.7, when next() was used without explicitly passing the request object, it could lead to SSRF in self-hosted applications that incorrectly forwarded user-supplied headers. This vulnerability has been fixed in Next.js versions 14.2.32 and 15.4.7. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the next() function.
Severity
HIGH
CVSS score
8.2
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2025-08-29 22:15:32.143000
Last modified
2026-10-18 21:10:00.120000
View original CVE JSON
{
"id": "CVE-2025-57822",
"sourceIdentifier": "[email protected]",
"published": "2025-08-29T22:15:32.143",
"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. Prior to versions 14.2.32 and 15.4.7, when next() was used without explicitly passing the request object, it could lead to SSRF in self-hosted applications that incorrectly forwarded user-supplied headers. This vulnerability has been fixed in Next.js versions 14.2.32 and 15.4.7. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the next() function."
},
{
"lang": "es",
"value": "Next.js es un React framework para construir aplicaciones web full-stack. Antes de las versiones 14.2.32 y 15.4.7, cuando se utilizaba next() sin pasar explícitamente el objeto de solicitud, podría conducir a SSRF en aplicaciones autoalojadas que reenviaban incorrectamente los encabezados proporcionados por el usuario. Esta vulnerabilidad ha sido corregida en las versiones 14.2.32 y 15.4.7 de Next.js. Se recomienda encarecidamente a todos los usuarios que implementan lógica de middleware personalizada en entornos autoalojados actualizar y verificar el uso correcto de la función next()."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "vercel",
"product": "next.js",
"versions": [
{
"version": "< 14.2.32",
"status": "affected"
},
{
"version": "< 15.4.7",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "LOW",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.2,
"impactScore": 4.2
},
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "LOW",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 3.9,
"impactScore": 4.2
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-09-02T17:26:15.763023Z",
"id": "CVE-2025-57822",
"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-918"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*",
"versionEndExcluding": "14.2.32",
"matchCriteriaId": "2A3CBDD9-BA60-40F2-905B-1E4BD421D658"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*",
"versionStartIncluding": "15.0.0",
"versionEndExcluding": "15.4.7",
"matchCriteriaId": "03A17779-828F-4998-BA58-18474C6A794A"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://vercel.com/changelog/cve-2025-57822",
"source": "[email protected]",
"tags": [
"Mitigation",
"Vendor Advisory"
]
}
]
}