← Lab /Software

All LLM-generated automation scripts contain exploitable vulnerabilities

Every script produced by ChatGPT, Copilot, and Gemini in the study had exploitable vulnerabilities

Software arXiv 22 Jul 2026 Measurement Prototype evidence

Published as “Security Vulnerability Patterns in AI-Generated Code: A Cross-Model Comparative Study”

Why it matters

Non-expert users who deploy LLM-generated scripts risk embedding exploitable vulnerabilities into enterprise workflows.

Summary

LLM-generated automation scripts for non-expert users contain a consistent set of security flaws across models: 9 of the 17 vulnerability classes appear in code from all three platforms and 14 appear in at least two. The total number and severity of vulnerabilities are tightly clustered across ChatGPT, Copilot, and Gemini, with less than a 10% difference in CVSS weighted scores. The study examined nine Python scripts generated with identical prompts, so the evidence is limited to this small sample but shows a systemic risk rather than a model-specific issue.

What they found 2

  1. Nine of the 17 vulnerability classes appeared in code from all three LLMs.

    “Nine of the 17 vulnerability classes showed up in code from all three platforms.”

  2. The number of vulnerabilities is tightly clustered across models, indicating no model produces markedly more secure code.

    “The count of vulnerabilities by LLM is tightly clustered (see Table II). Such tight consistency across the models shows that no model was generating more secure code.”

Caveats 1

  • The numbers are nearly identical, with Copilot having one additional Low finding.

What’s new here 3

  • Cross-model comparison of security weaknesses in automation scripts generated for non-expert users.
  • Focus on realistic enterprise tasks rather than benchmark coding problems.
  • Application of a standardized vulnerability-assessment process to classify findings across models.