Deployment Best Practices
NODE_ENV, debug mode, health check endpoints, error monitoring, dev environment variables in production, backup policies, and session timeouts.
7 vulnerabilities
NODE_ENV Not Set to Production
mediumRunning Node.js without NODE_ENV=production enables verbose error messages, disables caching optimizations, and can activate development-only middleware.
Debug Mode Active in Production
mediumDebug mode enabled in production exposes internal state, enables verbose logging, and sometimes activates interactive debugging endpoints that attackers can exploit.
No Health Check Endpoint
lowWithout a /health endpoint, load balancers and orchestrators can't verify your application is actually working before routing traffic to it.
No Error Monitoring
lowWithout error monitoring, production errors are invisible until a user reports them — which most never do.
Dev Environment Variables in Production
highUsing development credentials (test API keys, local database URLs, sandbox payment keys) in production puts real users at risk.
No Backup Policy
infoWithout regular tested backups, a ransomware attack, accidental deletion, or database corruption can result in permanent data loss.
No Session Timeout
mediumSessions that never expire stay valid indefinitely, giving attackers unlimited time to use stolen tokens.