VDB
Sign up
MEDIUM6.3

GHSA-rhh4-g77r-r9qj

Next.js: Cross-user cache disclosure and poisoning in Next.js use cache with binary arguments

Quick fix

GHSA-rhh4-g77r-r9qj — next: upgrade to the fixed version with the command below.

npm install next@16.4.5

Details

Next.js App Router applications that pass binary arguments (such as Uint8Array or Blob values) to functions using the `use cache` directive can produce identical cache keys for distinct arguments, allowing cached results to be shared across users — cross-user disclosure of cached data or cache poisoning. This affects applications using `use cache` with binary arguments.

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

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"]}'