The era of 'vibe coding'βwhere developers rely on AI tools like Cursor and Claude Code to ship products rapidlyβis hitting a hard wall. A new analysis of 71 GitHub repositories scanned by Trust, a security checker for AI-built apps, reveals that 65% of these projects contained at least one critical security flaw. The findings, published on DEV.to on November 26, 2026, suggest that while AI accelerates development speed, it often bypasses fundamental security hygiene, leaving solo builders and small teams exposed to preventable breaches.
The Vulnerability Landscape
The data breaks down into three primary failure modes. First, 54% of the scanned repos (38 out of 71) relied on packages with known vulnerabilities. This stems from a common AI behavior: selecting package versions that worked in its training data, which often lag behind current security patches. Second, 42% of the projects (30 out of 71) had API keys or credentials hardcoded directly into the source code. While some keys are intended to be public, such as Firebase web keys, the scans frequently uncovered server-side secrets and database URLs exposed in public repositories. Third, 34% of the apps (24 out of 71) used raw HTML rendering methods like innerHTML or dangerouslySetInnerHTML. While these are standard for static content, they create significant risk when user input reaches them, opening the door to cross-site scripting (XSS) attacks. The author of the study, who built Trust after experiencing a Vercel alert for 'abnormal, intrusion-like traffic' on their own AI-built product, noted that the fear of becoming a headline in Korea's frequent data leak news cycle drove the development of this tool.
Practical Fixes for Solo Builders
For developers looking to audit their own AI-generated code without specialized tools, the report outlines a manual checklist. Running npm audit or the equivalent for other package managers is the first step to catching vulnerable dependencies. Developers are urged to search their repository and git history for patterns like KEY, SECRET, postgres://, and sk-. Crucially, if a server key was ever committed, simply deleting the line is insufficient; the key must be rotated. Finally, a manual grep for innerHTML and dangerouslySetInnerHTML is recommended to ensure user input cannot be injected into rendered HTML.
The Role of AI in Security
Trust aims to integrate security directly into the AI workflow. By connecting via MCP (Model Context Protocol), coding agents can run scan_repo_and_wait to check for leaked keys and vulnerable dependencies, or get_fix_plan to retrieve specific file and line changes. The author demonstrates a workflow where, before committing or opening a pull request, they instruct their LLM to 'run a security check on my service and review it adversarially.' This approach leverages the AI's speed while mitigating its tendency to overlook security context.
Key Takeaways
- 65% of 71 scanned AI-built repos had at least one major security issue.
- 54% contained packages with known vulnerabilities due to outdated AI training data.
- 42% had hardcoded API keys or credentials, including server-side secrets.
- Manual rotation of leaked keys is mandatory; deleting the line from code is not enough.
- MCP integration allows AI agents to run security scans and apply fixes before commits.
The Bottom Line
AI coding tools are excellent at generating functionality but terrible at maintaining security hygiene. Until these models better understand current vulnerability landscapes and secret management, developers must treat AI-generated code as untrusted input and verify every dependency and credential manually.