Vibe coding security: 9 risks to check before real users (with a checklist) A developer who built the booking SaaS Profilapp with Claude Code and Cursor outlined nine security risks to check before shipping vibe-coded apps, citing Veracode's 2026 report that AI-generated code passed only 56% of security checks, unchanged from a year earlier. The risks include missing row-level security, API keys exposed in front-end code, and authorization enforced only in the UI; the developer notes a 2025 scan of 1,645 Lovable-built apps found 170 with publicly readable databases, tracked as CVE-2025-48757. Short answer - AI writes code that works but often isn't safe: in Veracode's 2026 tests, AI-generated code passed only 56% of security checks, a rate that hasn't improved in a year. - The risks that hurt vibe-coded apps most are simple ones: customers who can read each other's data, secret keys in the browser, checks that only happen in the UI, invented packages, and an agent with access to production. - Each one can be tested in minutes without being a security expert. The checklist at the end covers what to do before the first real user signs up. When you write code by hand, the slow parts are where you notice problems. Vibe coding removes the slow parts. A feature appears, it works in the preview, and it ships. The AI did what you asked, and nobody asked it who should be allowed to see the data. The numbers back this up. In Veracode's 2025 report https://www.veracode.com/press-release/ai-generated-code-poses-major-security-risks-in-nearly-half-of-all-development-tasks-veracode-research-reveals/ , AI models introduced a security flaw in 45% of the coding tasks they were given. A year later, the 2026 report https://www.veracode.com/news/llms-are-getting-smarter-but-not-safer-veracode-2026-genai-code-security-report-finds-ai-generated-code-security-has-stalled-at-56%25-pass-rate/ found the average security pass rate stuck at 56%, even though the code compiles almost every time. Models got better at writing code, not at writing safe code. I built Profilapp https://elmamoune.dev/blog/designing-and-vibe-coding-profilapp , a booking SaaS that holds restaurant and guest data, with Claude Code and Cursor. The checks below are the ones that matter most for a product like that. You don't need to be a security engineer to run these checks. You need to know where to look. Nine risks, four places. Most real incidents start in the database or the browser. For each one: what goes wrong, how to check it yourself, and what to ask the AI. This is the most common and most damaging one. The app shows each user only their own records on screen, but the database will hand any record to anyone who asks. In 2025, a researcher scanned 1,645 apps built with Lovable and found 170 where the database could be read by anyone, tracked as CVE-2025-48757 https://nvd.nist.gov/vuln/detail/CVE-2025-48757 with a critical 9.3 score. The cause was missing or too-open row-level security in the Supabase database. How to check it: create two test accounts, add data with account A, sign in as account B and try to load A's records by changing the ID in the URL or the request. If you use Supabase, read its guide to row-level security https://supabase.com/docs/guides/database/postgres/row-level-security and run its security advisor. Prompt Show me, table by table, how the database stops user A from reading or changing user B's rows. Then write an automated test that signs in as two different users and proves it. Don't change any policy until I've read your answer. AI tools often put an API key wherever it makes the code work, including in front-end code that every visitor downloads. In Next.js, anything prefixed with NEXT PUBLIC ends up in the browser. A leaked payment, email or AI key can cost real money within hours. How to check it: open your site, view the page source and the JavaScript files in the browser's developer tools, and search for "key", "secret" and "sk ". Turn on secret scanning https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning on your GitHub repository so a committed key gets flagged. A hidden admin button, a price set in the checkout form, a role stored in the browser: they all look secure until someone sends the request directly. The rule is simple: the server decides who you are and what you can do, never the page. How to check it: for each action that matters pay, delete, invite, change role , ask whether the server checks the user's permission and recalculates the price, or trusts what the browser sent. When user input ends up in a database query or on a page without being cleaned, attackers can run their own queries or scripts. This is where AI does worst: in Veracode's 2026 tests, models failed to protect against cross-site scripting 85% of the time https://www.veracode.com/wp-content/uploads/2026-GenAI-Report-Infographic.pdf . How to check it: type