CVE 6.5 MEDIUM

Next.js Improper Middleware Redirect Handling Leads to SSRF_CVE-2025-57822

6.5 / 10
MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N

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.

Basic Information

ID CVE-2025-57822
Source GitHub_M
Published Aug 29, 2025 at 21:33
Modified Aug 29, 2025 at 22:03

Affected Product

Vendor vercel
Product next.js
Version < 14.2.32
Affected Versions vercel next.js < 14.2.32
vercel next.js < 15.4.7

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.