Through our automated auditing of over 400 Next.js enterprise repositories, Vouch identified four dominant vulnerability patterns in Server Actions:
1. Missing Session Verification: Assuming that middleware or client state already validated the user, leaving the action completely unauthenticated.
2. Excessive Data Return: Returning sensitive database records (such as password hashes or internal billing tokens) in the action response, which get serialized into the HTML flight stream.
3. Indirect Object Reference (IDOR): Accepting an 'id' parameter directly from the client without verifying that the authenticated user owns that specific resource.
4. Unbounded Mutations: Omitting rate limits on critical mutations like payment creation, invite sending, or cryptographic key generation.