AI Writes Your Code. But Can You Trust Its Dependencies?