# Authentication in Next.js Server Actions - ID: javascript-nextjs-server-action-authentication - Severity: MEDIUM - Languages: JavaScript, TypeScript - Frameworks: nextjs ## Description Detects Server Actions that modify data without authentication checks. ## Detection Message Server Action '{function_name}' lacks authentication check - anyone can call this function ## Remediation Add authentication check at the start of the Server Action. See remediation section for examples. ## Documentation [object Object] ## Related Rules - **Docker Build Optimization and Best Practices** [LOW]: - **Docker Compose Obsolete Version Field** [LOW]: - **Docker File Operations Best Practices** [LOW]: - **Invalid Port Number in EXPOSE** [ERROR]: - **Multiple ENTRYPOINT Instructions** [MEDIUM]: