Use of Cache Containing Sensitive Information Affecting next package, versions >=13.0.0 <15.5.21>=16.0.0 <16.2.11


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NEXT-18233146
  • published23 Jul 2026
  • disclosed22 Jul 2026
  • creditrafabd1

Introduced: 22 Jul 2026

NewCVE-2026-64648  (opens in a new tab)
CWE-524  (opens in a new tab)

How to fix?

Upgrade next to version 15.5.21, 16.2.11 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information in createPatchedFetcher in packages/next/src/server/lib/patch-fetch.ts. An attacker can leak a cached response body from one request to another by sending server-side fetch(new Request(...), init) calls to the same URL with different request bodies or overrides. When the Request object and the separate init object diverge, the fetch cache can key the request differently from the effective upstream request, so a response generated for one body is reused for a different body. This exposes confidential data in cached POST responses to unauthorized requests.

Notes

  • Applications using the Pages Router are not in scope for this issue; the advisory applies to the server-side patched fetch path.
  • The leak requires fetch(new Request(...), init) where the separate init overrides the base Request; fetch(new Request(init), init) is the safe shape called out by the maintainers.

CVSS Base Scores

version 4.0
version 3.1