- Notifications
You must be signed in to change notification settings - Fork30.1k
Improper Middleware Redirect Handling Leads to SSRF
Moderate
Description
A vulnerability inNext.js Middleware has been fixed inv14.2.32 andv15.4.7. The issue occurred when request headers were directly passed intoNextResponse.next(). In self-hosted applications, this could allow Server-Side Request Forgery (SSRF) if certain sensitive headers from the incoming request were reflected back into the response.
All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of thenext() function.
More details atVercel Changelog
Severity
Moderate / 10
CVSS v3 base metrics
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
CVE ID
CVE-2025-57822
Weaknesses
No CWEs
Credits
prdngrReporter