supabase-architecture-variants
Warn
Audited by Socket on Sep 9, 2026
1 alert found:
SecuritySecurityreferences/nextjs-ssr.md
MEDIUMSecurityMEDIUM
references/nextjs-ssr.md
The code is not indicative of malware or intentional supply-chain compromise. The server/client key separation and cookie-based session handling are generally appropriate. However, deleteUserAccount is critically unsafe as shown: an unauthenticated or unauthorized caller may be able to invoke the server action with another user's ID and use the service-role key to delete that user's data and account. Require authenticated caller verification, explicit authorization, and preferably enforce that self-service deletion targets the caller's own user ID. Review OAuth state/PKCE handling and avoid exposing detailed backend errors.
Confidence: 97%Severity: 90%
Audit Metadata