p PatchFirst

CVE-2026-94544

CVE-2026-94544 · Next.js: Pending `use cache` fill can leak Draft Mode content into regular responses and persisted pages

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Next.js is a React framework for building full-stack web applications. From 16.3.0 until 16.3.8, pending use cache fills for the same key are shared without separating Draft Mode requests from regular requests. An overlapping regular request can receive unauthenticated unpublished content from an editor's Draft Mode fill, while an overlapping Draft Mode request can receive published content from a regular fill. When the regular request prerenders a page, the draft-dependent content can persist in the generated page and be served to later visitors until revalidation. Sites are affected when Cache Components or experimental.useCache is enabled and cached functions return draft-dependent content. This issue is fixed in version 16.3.8.

CVSS 6.3 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • next.js

    Versions
    • >= 16.3.0, < 16.3.8: Affected

    No fix published

  • next npm

    Affected ranges
    • SEMVER: ≥ 16.3.0, < 16.3.8

    Update to 16.3.8

Original sources

Check your server →