VDB
Sign up
MEDIUM6.3

GHSA-pc58-hwjq-p385

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

Quick fix

GHSA-pc58-hwjq-p385 — next: upgrade to the fixed version with the command below.

npm install next@16.4.5

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/next
Introduced in: 16.0.0Fixed in: 16.4.5
Fixnpm install next@16.4.5
npm/next
Introduced in: 0Fixed in: 15.5.29
Fixnpm install next@15.5.29

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/next"]}'