A new study checked 200 live apps that AI agents built almost on their own. Nine out of ten had a real vulnerability. The causes are simple, and so are the first fixes.
This website is vibe-coded. An AI agent wrote almost every line while I described what I wanted and checked the result. So a new study on the security of vibe-coded apps1 was personal reading for me.
The short version: these apps are real, they go live fast, and nine out of ten had a security hole.
The study in one minute
Three researchers (from the National University of Singapore, Microsoft and independent work) found 9,041 apps on GitHub that AI agents (Claude Code and Lovable) built almost on their own: at least 90% of the code was written by AI. They picked 200 that are live on the internet and audited them with AI security agents. Then two people confirmed every bug by hand.
These were not toy projects. The typical app had about 8,000 lines of code and was built in 8 days.
In plain words: users could see other people's data, attackers could slip commands into the app, and the login could be skipped. The paper even describes a live healthcare platform that leaked customer data this way.
Why it happens: three habits of AI agents
The authors read the history of every bug. The causes come down to three habits.
1. It forgets
The agent adds a security check to the new code, and forgets the old code it wrote last week. Or it leaves a "TODO: check the password later" and nobody ever comes back.

2. It wants it to work, now
When you say "fix this error", the fastest fix is often to remove the security check that causes the error. The error is gone, and so is the protection.
// The fix for "CORS error on the upload page".
// It works, and it lets any website act with the user's login.
app.use(cors({ origin: true, credentials: true }));

3. Nobody told it
This is the biggest cause, 63% of all bugs: a security rule that the user did not give and the agent did not know or apply. Often the rule is so basic that nobody writes it in the prompt: hash passwords, check who the user is on the server, clean user input before you use it. A missing rule breaks no feature, so neither the agent nor the user notices.
What helps
The authors went back to 70 of the bugs, gave an agent the same task again, and counted how often the bug came back. They tried different prompts, models and settings.
- Two cheap changes cut the bugs by more than half: ask in your prompt for code that is "ready for production", or give the agent a security skill.
- A long, very technical prompt made it worse (46%). The agent followed the instructions to the letter and used less of its own judgement.
- The strongest model was no better than the mid-tier one. A bigger model is not a security plan.
- Nothing removed every bug. The same setup was sometimes safe in one run and unsafe in the next.
Which skill? In the replay test, the security skill was Addy Osmani's Security and Hardening skill. For the audit itself, the authors used OpenAI's Security Best Practices skill and the Security Audit skill from Antigravity Awesome Skills.
One warning: a skill is code that your agent trusts, so check it before you install it. NVIDIA's open-source SkillSpector scans a skill for prompt injection, data exfiltration and supply-chain risks. NVIDIA reports that 26.1% of the 31,132 skills in its research set had a vulnerability.2
The finding that stays with me
In 1 out of 5 runs that brought a bug back, the agent saw the risk. It wrote a warning or a TODO, and then shipped the insecure code anyway.

I work on LLM security, and to me this is the real lesson. The model often knows the right thing. Knowing is not enough. Security has to be a rule the system enforces, not advice the model can ignore: automatic checks on every change, and an open risk that stops the task instead of becoming a comment.
If you vibe-code, do this
I will keep building with agents, because the speed is real. Speed is fine. Shipping without a gate is not.
The study has limits: it looks only at open-source apps from two tools, and the exact numbers will move with the next models. But the pattern is clear, and it matches what I see in my own work.
Footnotes
-
J. Deng, Z. Fan and R. Meng, "Understanding the (In)Security of Vibe-Coded Applications", arXiv:2606.23130 (v4, September 2026). All numbers come from the paper, except the SkillSpector number. The code example is mine, and the illustrations are AI-generated. ↩
-
NVIDIA, SkillSpector README, accessed November 2026. ↩

