Next.js Server Actions sind öffentliche Endpunkte: 6 Checks vor dem Launch
Server Actions in Next.js laufen zwar auf dem Server, sind aber öffentlich per HTTP aufrufbar, auch ohne das zugehörige Formular. Vor allem von KI generierter Code ignoriert das oft; sechs Prüfungen sollen helfen, sicherheit relevante Fallstricke vor dem Ausliefern zu erkennen.

Next.js Server Actions feel private. You write a function with "use server", call it from a form, and the code runs on the server. AI tools generate them constantly. But each one becomes a public HTTP endpoint that anyone can call, with or without your form.
Start every action with the same three steps: get the session, validate the input, check the caller may act on that record. Put them in one helper so a new action cannot forget them. Keep row level security on as a second layer.
Open DevTools, Network, submit your form, and copy the request. Replay it signed out, then as another user with a changed id. If it works, the action is open.
ProofForge at proofforge.live runs a free public-side scan of AI-built apps. It never signs in, so it cannot call your actions as a user and will not tell you they are safe. It does check what a visitor can reach and see, and for Supabase apps there is a free two-account test using two of your own test accounts.