A study of 9,041 open-source applications built with popular AI agents audited 200 publicly deployed apps and found 1,186 vulnerabilities. 91% of audited applications contained at least one vulnerability, and 65.77% of findings were critical or high severity, concentrated in broken access control, injection, and authentication failures (arXiv 2606.23130). Veracode found 45% of AI-generated code failed security tests. Escape.tech scanned 5,600+ live apps built on Lovable, Base44, Bolt.new, and similar platforms and found 2,000+ vulnerabilities and 400+ exposed secrets.

Why this is systematic

The vulnerabilities trace to three limitations of AI agents:

  • Memory defects. Security obligations established early are forgotten as the conversation grows. Authorization added on page one is gone by page ten.
  • Objective defects. The model optimizes for the requested feature. Security is not the requested feature, so it is deprioritized or skipped.
  • Knowledge defects. The model does not know your permission model, your data sensitivity, or your deployment defaults, so it cannot secure them.

These limitations do not disappear with better prompts. The study found that even when agents recognized security risks, they still shipped insecure code. Better harnesses reduced incidence but did not eliminate the underlying risk.

The eight recurring failure modes

  1. Missing authorization. The interface filters records; the server and database do not.
  2. Exposed secrets. Keys in code, browser bundles, prompts, or logs.
  3. Weak authentication. The server trusts an identity supplied by the browser.
  4. Unsafe input. User input reaches queries, HTML, or logs directly.
  5. Invented packages. Imports that do not exist, vulnerable to slopsquatting.
  6. Open deployment. Public storage, admin routes, or preview URLs left exposed.
  7. Excessive agent access. Broad production credentials held by the AI tool.
  8. Missing abuse controls. No rate limits, quotas, or spend alerts.

What this means for you

If you built an app with an AI tool and it is exposed to the internet, assume it has at least one of these. The risk is not that the code is bad; it is that nobody checked it against your specific permission model and data. A working demo is not evidence of safety.

What to do

  • Run the 24-point security checklist before launch.
  • Test authorization with a second account, not by reading code.
  • Rotate any secret that ever appeared in a prompt, bundle, or commit.
  • Get a human review of the auth and data paths before real users arrive.

See the production readiness audit →   See the vibe coder path →