5 security holes I find on almost every AI-built site
AI tools like Lovable, v0 and Bolt build a site in an afternoon — and just as fast, build in the same mistakes over and over. Here are the five most common.
Sites built fast with AI have one thing in common: the same mistakes keep coming back. Not because AI is stupid, but because it optimises for "it works", not for "it's safe". After a year of audits, a handful of findings recur often enough to rank them.
1. An exposed .env file
The most common and the most dangerous. The config file holding your database credentials, API keys and secrets, reachable straight from the internet:
https://your-site.com/.env → 200 OK
Anyone can download it and walk away with the keys to the kingdom. The fix is trivial — never deploy .env into the webroot — but AI generators leave it there routinely. (Why an exposed .env is a catastrophe, and how to close it.)
2. Keys sitting in the page source
A Stripe key, an OpenAI token, a Supabase service key — hardcoded into JavaScript that every visitor downloads. "It's only the frontend" is not an excuse; a secret in the browser is a secret in the wild. Scrapers find bundled keys within hours of launch.
3. Missing security headers
Without Content-Security-Policy the site is open to injected third-party scripts (XSS). Without Strict-Transport-Security the connection can be downgraded to plaintext. Headers cost nothing, and AI almost never sets them. Here's what each one does, in plain language.
4. An open .git directory
Deploy the whole working directory and the commit history ships with it — publicly downloadable, and often still holding the deleted keys someone believed were gone.
5. A database without Row Level Security
Supabase and backends like it are excellent, right up until you forget to switch RLS on. Then anyone can read other people's data straight through the public API. How to switch RLS on without breaking your app.
None of these needs a hacker. Curiosity and a browser will do. The good news: all five can be found in under a minute — which is exactly why Reconvio exists.
These five are the greatest hits. For the whole list — database rules, authentication, DNS, dependencies and the compliance gaps AI skips too — work through the complete security checklist for AI-built sites.
See what your site exposes
Run a free audit and get concrete issues in half a minute — no signup.
Check my websiteKeep reading
The complete security checklist for AI-built sites (Lovable, Bolt, v0, Cursor)
An AI can ship a working app in an afternoon — and leave a dozen doors unlocked. This is the full checklist I run against AI-built sites, in the order the findings actually bite.
July 19, 2026
One website audit or a dozen browser tabs? All-in-one vs single-purpose scanners
There's a great free tool for each of security headers, SSL, DNS, speed, SEO and cookies. Running all of them, reconciling the results, and knowing what actually matters is the real work. The case for a single scan.
July 19, 2026