Launch security guides
Plain-English fixes for the mistakes AI builders ship most often.
We Scanned 535 AI-Built Apps for Leaked AI Keys and Open AI Endpoints
A study of 535 recently active Lovable, Bolt, v0 and Cursor apps. 35% call an AI model, and 23% of those leak an AI key or let anyone trigger paid AI calls with no login and no rate limit.
We Scanned 456 AI-Built Apps on GitHub. Here's What We Found
A study of 456 public Lovable, Bolt and vibe-coded repos. How often they commit .env files, hard-code Supabase service_role keys, leave tables writable by anyone, and ship vulnerable dependencies.
Is My Lovable App Secure? A Practical Check Before You Launch
How to tell if your Lovable app is safe to launch. Check Supabase RLS, exposed keys, auth on edge functions, and Stripe webhooks, with code you can copy.
Supabase RLS Checklist for Vibe Coders
A step-by-step Supabase Row Level Security checklist for AI-built apps. Find tables with RLS off, write safe policies, and avoid the common traps with views, storage and service_role.
Stripe Webhook Signature Verification in Next.js (App Router)
How to verify Stripe webhook signatures in a Next.js App Router route handler, why the raw body matters, and how to fulfill orders safely and idempotently.
Exposed API Keys in NEXT_PUBLIC_ (and VITE_) Env Vars
Why NEXT_PUBLIC_ and VITE_ environment variables are visible to everyone, which keys are safe to expose, how to find leaked ones, and how to move secrets server-side.
Pre-Launch Security Checklist for AI-Built Apps
A practical pre-launch security checklist for apps built with Lovable, Bolt, Cursor, Replit or v0. Secrets, database access, auth, payments, dependencies and monitoring.
How to Check If Your API Keys Leaked on GitHub
Find out whether API keys or secrets from your AI-built app ended up in a GitHub repo, including old commits. Scan with gitleaks and TruffleHog, use GitHub secret scanning, and know what to do next.
How to Rotate Leaked Supabase, OpenAI and Stripe Keys
A calm, step-by-step guide to rotating a leaked Supabase service role key, OpenAI API key or Stripe secret key without breaking your app, plus how to check for misuse afterwards.
Bolt.new App Security Checklist Before You Launch
A practical security checklist for apps built with Bolt.new. Check exposed VITE_ keys, Supabase RLS, server-side secrets, auth on functions, payments and dependencies before going live.
Replit App Security Checklist for AI-Built Apps
How to secure an app built with Replit Agent before you launch. Secrets, public code, database access, auth on every endpoint, payments, rate limits and deployment settings.
How to Security Review Cursor-Generated Code
A practical review process for code written with Cursor or other AI editors. What to look for in diffs, prompts that help, rules files, and automated checks to run before you merge.
Securing Next.js API Routes with Auth (App Router)
How to protect Next.js App Router route handlers with authentication and authorization. Check the session in every handler, verify ownership, and avoid relying on middleware alone.
Next.js Server Actions Security for AI-Built Apps
Server Actions are public HTTP endpoints. How to add auth checks, ownership checks and input validation to Next.js Server Actions, and avoid leaking data through return values.
How to Rate Limit OpenAI API Routes in Next.js
Protect your AI app from surprise bills. Add auth, per-user rate limits, input caps and spending limits to Next.js routes that call OpenAI or other LLM APIs.
Firebase Security Rules for AI-Built Apps
How to replace test-mode Firestore and Storage rules with real ones. Owner-only access, field validation, protecting admin flags, and testing rules with the emulator before launch.
Supabase Storage Security: Public vs Private Buckets
How to secure Supabase Storage in an AI-built app. When to use public buckets, per-user folder policies on storage.objects, signed URLs, and upload size and type limits.
Stop Price Tampering in Stripe Checkout (Next.js and Supabase)
Why you should never send prices from the browser to Stripe, how attackers change them, and how to build Checkout Sessions with server-side prices, Price IDs and webhook fulfillment.
Next.js Middleware Auth Bypass (CVE-2025-29927): Am I Affected?
How the x-middleware-subrequest bypass works, which Next.js versions and hosts are affected, how to check and patch your app, and why auth should not live only in middleware.
v0 App Security Checklist: What to Check Before You Launch
A practical security checklist for apps built with Vercel's v0. Covers environment variables, API routes, server actions, Supabase RLS, Stripe webhooks, rate limits and how to test it all before real users arrive.
CORS in Next.js API Routes: Fix the Error Without Opening a Security Hole
How to fix "No 'Access-Control-Allow-Origin' header" in Next.js and Supabase Edge Functions safely, why Access-Control-Allow-Origin * is risky with cookies, and why CORS is not authentication.
"new row violates row-level security policy": How to Fix the Supabase Error Safely
Why Supabase returns "new row violates row-level security policy for table" (error 42501) on insert, update or upsert, how to fix it with the right policy, and the insecure fixes to avoid in Lovable, Bolt and Next.js apps.
Supabase getSession vs getUser vs getClaims: Which Is Safe on the Server?
Why Supabase warns that getSession() is insecure on the server, when to use getUser() or getClaims() in Next.js middleware, server components and API routes, and how a forged session cookie can bypass your auth check.
Supabase RPC and Security Definer Functions: How They Bypass RLS (and How to Lock Them Down)
Why Postgres functions you call with supabase.rpc() can be run by anyone with your anon key, how security definer functions and views skip row level security, and the exact SQL to audit and fix them.
Next.js Security Headers and Content Security Policy: A Copy-Paste Setup
How to add Content-Security-Policy, HSTS, X-Frame-Options and other security headers to a Next.js app, including Supabase and Stripe allowlists, nonces, static exports, and Vite apps from Lovable or Bolt.
How to Prevent IDOR in Next.js and Supabase Apps (Users Seeing Other Users' Data)
What IDOR (insecure direct object reference) is, how it shows up in apps built with Lovable, Bolt, v0, Cursor and Replit, and how to fix it in Next.js API routes, server actions and Supabase with ownership checks and RLS.
How to Add Admin Roles in Supabase Securely (and Why user_metadata Is Not Safe)
Users can edit their own Supabase user_metadata and often their own profiles row, so storing is_admin or role there lets anyone make themselves an admin. Here's how to store roles safely with app_metadata, a roles table and RLS.
Supabase Edge Functions Security Checklist: JWT Verification, Secrets, CORS and Webhooks
Supabase Edge Functions are public HTTPS endpoints. The default JWT check does not prove a user is signed in, and functions often run with the service role key. Here's how to verify users, scope service role access, handle CORS and secure webhook functions.
How to Gate Paid Features with Stripe Subscriptions Securely (Next.js and Supabase)
If your app decides who is a paying customer in the browser or from a column users can edit, anyone can unlock premium features for free. Here's how to store subscription status from Stripe webhooks and enforce it on the server and in RLS.
Supabase Realtime Security: Is Your Realtime Channel Leaking Data?
Supabase Realtime can leak data in three ways: tables in the realtime publication without RLS, public Broadcast and Presence channels anyone can join, and DELETE events that skip RLS. Here's how to lock down Postgres Changes, private channels and realtime.messages policies.
Supabase Auth Redirect URLs and Password Reset Security: Stop Login Links Going to the Wrong Site
Loose Supabase redirect URL wildcards, a Site URL left on localhost, and an unchecked "next" parameter in your auth callback can send magic links, OAuth codes and password reset links to an attacker. Here's how to configure redirect URLs and build a safe reset flow.
Supabase Security Advisor Warnings Explained: How to Fix Each One Safely
What the Supabase Security Advisor errors and warnings mean (RLS disabled in public, security definer view, function search path mutable, auth users exposed, permissive RLS policy and more), which ones are launch blockers, and the SQL to fix each without breaking your app.
Prompt Injection in AI-Built Apps: How to Protect Your Chatbot, Tools and RAG
Prompt injection can't be fully prevented with a better system prompt. Here's how to limit the damage in Next.js and Supabase AI apps: authorize tool calls on the server, keep secrets out of prompts, scope RAG queries to the user, and render model output safely.
Is dangerouslySetInnerHTML Safe? Preventing XSS in React and Next.js Apps (Markdown, AI Output and Rich Text)
When dangerouslySetInnerHTML, markdown renderers, AI chat output, user links and JSON-LD script tags cause XSS in React and Next.js apps built with Lovable, Bolt, v0 or Cursor, and the exact code to render that content safely.
How to Stop Fake Signups and Bot Abuse in Supabase Auth (CAPTCHA, Rate Limits and Signup Hooks)
Why bots can sign up to your Supabase app directly with the public anon key, and how to stop fake accounts and email abuse with CAPTCHA (Turnstile or hCaptcha), email confirmation, auth rate limits, custom SMTP, the before-user-created hook and RLS that treats new and anonymous users carefully.
SQL Injection in Next.js and Supabase Apps: Prisma $queryRawUnsafe, Drizzle sql.raw, Supabase .or() Filters and Dynamic SQL in Postgres Functions
Where SQL injection still shows up in AI-built Next.js, Supabase, Prisma and Drizzle apps, how to spot the unsafe patterns Cursor, Lovable and Bolt generate, and how to fix them with parameterized queries, allowlists and format() with %L and %I.
SSRF in Next.js and AI Apps: How to Safely Fetch User-Supplied URLs (Link Previews, Image Proxies, Webhooks and AI Tools)
How server-side request forgery (SSRF) happens when a Next.js, Supabase Edge Function or Replit backend fetches a URL from a user or an AI agent, why it can expose cloud metadata and internal services, and a practical fix with protocol checks, private IP blocking, redirect handling, timeouts and size limits.
Is My Next.js Version Vulnerable? React2Shell and the 2026 Next.js Security Patches Explained (Which Version to Upgrade To)
A plain-English guide to the critical Next.js and React Server Components vulnerabilities from React2Shell (CVE-2025-55182, CVE-2025-66478) through the October and November 2026 security releases, how to check your installed version, which version is safe, and what to do if you ran an unpatched app.
Secure File Uploads in Next.js and Supabase: Validate Type and Size, Block SVG and HTML XSS, and Use Signed Upload URLs
How to secure file uploads in AI-built Next.js, Supabase, Lovable, Bolt and v0 apps. Why checking file.type is not enough, how to verify magic bytes, enforce size limits, rename files, use private buckets and signed upload URLs, and stop uploaded SVG or HTML files from running scripts on your domain.