AI tools for generating code are transforming software development, but nearly half of their outputs contain bugs, some of which pose significant security risks. Developers and policymakers must prioritize rigorous testing and accountability to balance innovation with safety.