Skip to main content
Menu
Advisories

Next.js: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responses

GHSA-PC58-HWJQ-P385Published Updated GitHub

Description

Self-hosted Next.js applications (App Router route handlers and the fetch cache) that return a fetched upstream response unchanged can emit a response whose declared framing does not match the body actually sent. When such an application sits behind an HTTP/1.1 reverse proxy that permits pipelined response queueing, a crafted upstream response can desynchronize responses between clients, enabling response injection and disclosure of other clients' responses.

Affected versions

References