AI-generated code frequently lacks proper authentication and authorization checks, creating applications with no authentication, weak session logic, or unrestricted access. A 2025 case saw a ticketing tool with zero authentication, exposing 3,000+ customer tickets.