GitHub Advisory Database
GHSA-955p-x3mx-jcvp
Next.js: Unauthenticated disclosure of internal Server Function endpoints
Details
Impact
In Next.js applications using App Router, Server Actions (use server) or use cache endpoints 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 cache or use server boundary. Always authenticate within the boundary.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | next | From 13.0.0 before 15.5.21 (fixed in 15.5.21) |
| npm | next | From 16.0.0 before 16.2.11 (fixed in 16.2.11) |
References
- https://github.com/vercel/next.js/security/advisories/GHSA-955p-x3mx-jcvp
- https://github.com/vercel/next.js/commit/1b0c3ae912a3ad925c60065cc8d55b070fa8bcd3
- https://github.com/vercel/next.js/commit/ff12a6124e1504f17b62de948b8a553fdecaef7b
- https://github.com/vercel/next.js
- https://github.com/vercel/next.js/releases/tag/v15.5.21
- https://github.com/vercel/next.js/releases/tag/v16.2.11