This is a Server-Side Request Forgery (SSRF, CWE-918) flaw in the Next.js SDK tunnel endpoint. When tunneling is enabled, attacker-controlled input at the tunnel endpoint is not sufficiently sanitized, causing the server to send an HTTP request to an arbitrary URL and return the received response to the user.
The confirmed high-level flow is:
- A network request reaches a tunnel endpoint exposed by the application.
- An attacker-controlled destination value is processed without sufficient sanitization.
- The server-side component requests the arbitrary destination and reflects the response to the client.
The record characterizes the condition as network reachable, requiring no authenticated privileges, having low complexity, and requiring user interaction. The practical scope depends on the services reachable from the server. The available evidence does not specify the exact input parameter, endpoint path, or complete validation logic; the fixing pull request only describes stricter validation of tunnel target parameters.