CVE-2026-103004
Received Received - Intake

Cache Key Leak in Next.js use cache Handlers

Vulnerability report for CVE-2026-103004, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-01

Last updated on: 2026-10-01

Assigner: GitHub, Inc.

Description

Next.js versions from 16.3.0 to 16.3.7 warm `use cache` handlers using `next/root-params` and can leak their return value to pages with different root params. With Cache Components enabled (cacheComponents: true), a 'use cache' function that calls another 'use cache' function that reads a root param can be keyed incorrectly when the inner call is served from an existing entry: the enclosing function's cache key then omits that root param. The enclosing entry is written once and reused for all root param values, so a response for one root param value can serve content produced for a different value β€” whether the page is prerendered at build time or at runtime, or rendered dynamically. Shared cache headers let downstream caches redistribute the content further. What values are leaked cannot be attacker controlled. Which value's content is served depends only on which invocation wrote the entry first. This has been patched in 16.3.8.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-01
Last Modified
2026-10-01
Generated
2026-10-01
AI Q&A
2026-10-01
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
vercel next.js From 16.3.0 (inc) to 16.3.7 (inc)
vercel next.js 16.3.8

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-524 The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Next.js versions 16.3.0 to 16.3.7 when using 'use cache' handlers with the Cache Components feature enabled. It causes cache keys to omit root parameters in nested 'use cache' functions, leading to incorrect reuse of cached responses across different parameter values. This can serve content intended for one root parameter to another, affecting both prerendered and dynamically rendered pages.

Detection Guidance

To detect this vulnerability, check if your Next.js application uses versions between 16.3.0 and 16.3.7 with the Cache Components feature enabled. Inspect your application's dependencies for Next.js version and configuration settings.

Impact Analysis

The impact includes potential exposure of sensitive or incorrect data to users due to mismatched cached responses. For example, a user requesting data for one root parameter might receive content generated for a different parameter. This could lead to confusion, data leaks, or unintended behavior in applications relying on cached responses.

Compliance Impact

This vulnerability could lead to unauthorized data exposure, violating confidentiality requirements under GDPR and HIPAA. If sensitive data is leaked to unintended users, it may result in non-compliance with data protection regulations, potentially leading to legal and financial penalties.

Mitigation Strategies
  • Upgrade Next.js to version 16.3.8 or later to patch the vulnerability.
  • Disable the Cache Components feature (cacheComponents: false) if upgrading is not immediately possible.
  • Review applications using nested 'use cache' functions with root parameters to identify potential exposure.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-103004. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart