Next.js: Unauthenticated disclosure of internal Server Function endpoints
Package
Affected versions
>= 13.0.0, < 15.5.21
>= 16.0.0, < 16.2.11
Patched versions
15.5.21
16.2.11
Description
Published to the GitHub Advisory Database
Jul 22, 2026
Reviewed
Jul 22, 2026
Last updated
Jul 22, 2026
Impact
In Next.js applications using App Router, Server Actions (
use server) oruse cacheendpoints can be disclosed bypassing any authentication on the pages where these endpoints are usually used.Server Action IDs can be disclosed to unauthenticated users via publicly served client artifacts (for example, static chunks containing action references).
Affected users are applications using App Router + Server Actions.
By itself, this disclosure is typically a recon/enumeration primitive; however, it can increase risk when combined with other weaknesses.
Workarounds
Never assume any authentication claims at the
use cacheoruse serverboundary. Always authenticate within the boundary.References