ARTFEED — Contemporary Art Intelligence

LLM-Generated Code Poses Critical Security Risks

ai-technology · 2026-05-25

A study by researchers evaluated the security of code generated by seven popular Large Language Models (LLMs). The results show that all seven LLMs produce code containing vulnerabilities, with the majority being critical or high severity. The study builds on previous work to mimic developer behaviors when using AI tools for code generation. Concerns about the risks associated with AI-generated code are highlighted, as many developers use or plan to use such tools for productivity and faster learning.

Key facts

  • Seven popular LLMs were evaluated for code security.
  • All seven LLMs generated code with vulnerabilities.
  • Most vulnerabilities were critical or high severity.
  • The study mimicked developer behaviors when using LLMs.
  • Major tech companies currently use LLM-generated code in production.
  • Developers cite productivity and faster learning as top reasons for using AI tools.
  • Concerns about risks of AI-generated code were raised.
  • The study empirically evaluated software security risks.

Entities

Sources