{"slug": "is-vibe-coding-safe-benchmarking-vulnerability-of-agent-generated-code", "title": "Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code", "summary": "A new benchmark called SUSVIBES, built from 186 real-world open-source feature-request tasks where human programmers committed vulnerable implementations, found that all 12 coding-agent settings tested with frontier models produced insecure code. In the headline result, 57% of solutions from SWE-Agent with Claude 4 Sonnet were functionally correct but only 11.8% were secure, and the authors report that adding vulnerability hints to the feature request did not mitigate the security problems. The findings, posted to arXiv on 2 Dec 2025 and revised through 21 Sep 2026, raise concerns about deploying vibe-coded software in security-sensitive applications.", "body_md": "# Computer Science > Software Engineering\n\n  [Submitted on 2 Dec 2025 (\n\n[v1](https://arxiv.org/abs/2512.03262v1)), last revised 21 Sep 2026 (this version, v4)]\n# Title:Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks\n\n[View PDF](https://arxiv.org/pdf/2512.03262)\n\n[HTML (experimental)](https://arxiv.org/html/2512.03262v4)\n\nAbstract:Vibe coding is a new software development paradigm in which human engineers prompt a large language model (LLM) agent to complete complex coding tasks with little supervision. Although vibe coding is increasingly adopted, is the generated code really safe to deploy in production? To investigate this question, we propose SUSVIBES, a benchmark consisting of 186 feature-request software engineering tasks from real-world open-source projects, for which, human programmers committed vulnerable implementations. We evaluate 12 widely used coding agentic settings with frontier models on the benchmark. Disturbingly, all agents perform poorly in terms of software security. Although 57% of the solutions from SWE-Agent with Claude 4 Sonnet are functionally correct, only 11.8% are secure. Further experiments demonstrate that preliminary security strategies, such as augmenting the feature request with vulnerability hints, cannot mitigate these security issues. Our findings raise serious concerns about the widespread adoption of vibe coding, particularly in security-sensitive applications. The code and dataset are available at [this https URL](https://github.com/LeiLiLab/susvibes). The leaderboard is at [this https URL](https://leililab.github.io/susvibes-leaderboard).\n    \n\n## Submission history\n\nFrom: Danqing Wang [\n[view email](https://arxiv.org/show-email/d04c9f3c/2512.03262)]\n\n**Tue, 2 Dec 2025 22:11:56 UTC (1,559 KB)**\n\n[\\[v1\\]](https://arxiv.org/abs/2512.03262v1)\n**Mon, 16 Feb 2026 22:50:33 UTC (1,783 KB)**\n\n[\\[v2\\]](https://arxiv.org/abs/2512.03262v2)\n**Fri, 21 Aug 2026 05:35:16 UTC (1,132 KB)**\n\n[\\[v3\\]](https://arxiv.org/abs/2512.03262v3)\n**[v4]** Mon, 21 Sep 2026 16:10:00 UTC (1,132 KB)\n\n### Additional Features\n\n### References & Citations\n\nLoading...\n\n# Bibliographic and Citation Tools\n\nBibliographic Explorer \n\n*(*[What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))\nConnected Papers \n\n*(*[What is Connected Papers?](https://www.connectedpapers.com/about))\nLitmaps \n\n*(*[What is Litmaps?](https://www.litmaps.co/))\nscite Smart Citations \n\n*(*[What are Smart Citations?](https://www.scite.ai/))\n# Code, Data and Media Associated with this Article\n\nalphaXiv \n\n*(*[What is alphaXiv?](https://alphaxiv.org/))\nCatalyzeX Code Finder for Papers \n\n*(*[What is CatalyzeX?](https://www.catalyzex.com))\nDagsHub \n\n*(*[What is DagsHub?](https://dagshub.com/))\nGotit.pub \n\n*(*[What is GotitPub?](http://gotit.pub/faq))\nHugging Face \n\n*(*[What is Huggingface?](https://huggingface.co/huggingface))\nScienceCast \n\n*(*[What is ScienceCast?](https://sciencecast.org/welcome))\n# Demos\n\n# Recommenders and Search Tools\n\nInfluence Flower \n\n*(*[What are Influence Flowers?](https://influencemap.cmlab.dev/))\nCORE Recommender \n\n*(*[What is CORE?](https://core.ac.uk/services/recommender))\n# arXivLabs: experimental projects with community collaborators\n\narXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.\n\nBoth individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.\n\nHave an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).", "url": "https://wpnews.pro/news/is-vibe-coding-safe-benchmarking-vulnerability-of-agent-generated-code", "canonical_source": "https://arxiv.org/abs/2512.03262", "published_at": "2026-11-30 09:53:57+00:00", "updated_at": "2026-11-30 10:15:18.611027+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-research", "large-language-models", "developer-tools"], "entities": ["SUSVIBES", "SWE-Agent", "Claude 4 Sonnet", "arXiv", "Danqing Wang", "LeiLiLab"], "also_reported_by": [], "takeaway": "Across 186 real-world tasks, SWE-Agent with Claude 4 Sonnet produced functionally correct code 57% of the time but secure code only 11.8% of the time, and adding vulnerability hints to the prompt did not close the gap.", "recommendation": {"advice": "Run security-focused evals on agent-generated code before deployment; in SUSVIBES, only 11.8% of functionally correct SWE-Agent/Claude 4 Sonnet solutions were secure, and vulnerability hints in the prompt did not help.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/is-vibe-coding-safe-benchmarking-vulnerability-of-agent-generated-code", "markdown": "https://wpnews.pro/news/is-vibe-coding-safe-benchmarking-vulnerability-of-agent-generated-code.md", "text": "https://wpnews.pro/news/is-vibe-coding-safe-benchmarking-vulnerability-of-agent-generated-code.txt", "jsonld": "https://wpnews.pro/news/is-vibe-coding-safe-benchmarking-vulnerability-of-agent-generated-code.jsonld"}}