Is my v0, Cursor or Replit app secure? What each tool checks, and what to check yourself
Short answer: not automatically. v0, Cursor and Replit each give you real safety tools, and none of them says a clean result means your app is secure. Replit's docs put it plainly: "No scan guarantees that your app is secure." What decides it in practice is the same short list on all three: no secret keys in the JavaScript your live site serves, every database table locked to its owner, every API route checking who is calling, and a re-check after each change.
Three different kinds of tool
They are not the same thing, which changes where the risk sits:
- v0 generates a Next.js app and deploys it to Vercel. The main boundary is Next.js's
NEXT_PUBLIC_prefix. - Cursor is an editor with AI agents. It does not host your app, so your secrets, build and deploy live wherever you host (Vercel, Netlify, Cloudflare, Fly and so on), and that host's rules apply.
- Replit builds, hosts and publishes the app, and has its own Secrets tool and Security Center.
v0: what it checks, and the NEXT_PUBLIC_ trap
v0's security page says that "Only variables prefixed with NEXT_PUBLIC_ are exposed to the browser", that "v0 analyzes NEXT_PUBLIC_ usage and warns users about potential security risks", and, under best practices, "Never expose sensitive tokens with NEXT_PUBLIC_ prefix" (v0: Security). Vercel's post on v0 security reports that "v0 blocked over 17k deployments on Vercel due to exposed secrets alone" in a 30-day period, with exposed API keys, NEXT_PUBLIC_ misuse and unauthenticated API routes as the most common issues (Vercel: v0, vibe coding securely).
The rule comes from Next.js: a NEXT_PUBLIC_ value is replaced at build time, and "It will be inlined into any JavaScript sent to the browser" (Next.js: Environment variables). So:
- Anything named
NEXT_PUBLIC_is public. A Supabase project URL and publishable key (sb_publishable_...) are fine there; an OpenAI, Anthropic or Stripe secret key, a database URL or a Supabase secret key (sb_secret_...orservice_role) is not. - Calls that need a secret go in a Route Handler or Server Action, never a client component.
- Renaming a variable does not remove it from a site that is already live. Deploy again, and replace any key that was ever public.
- v0's warnings cover what v0 generated. Code you or another tool edited later is yours to re-check.
Cursor: what it checks, and the traps
Cursor offers code review rather than hosting. Its docs describe Bugbot, which "reviews pull requests and identifies bugs, security issues, and code quality problems" (Cursor: Bugbot), and Security Agents: a Security Reviewer that "checks pull requests before they merge" and a Vulnerability Scanner that "scans your codebase at rest" on a schedule (Cursor: Security Agents). We did not confirm which Cursor plans include these, so check your own account.
The traps:
- Your secrets follow your framework and host, not Cursor. In a Vite app, Vite's docs say "Variables prefixed with VITE_ will be exposed in client-side source code after Vite bundling" (Vite: Env variables and modes); in Next.js it is
NEXT_PUBLIC_. An agent that "fixes" a missing key by adding the prefix has just published it. .cursorignorelimits what the AI reads, and only partly. Cursor's docs say ignoring files restricts access "to API keys, credentials, and secrets", but "complete protection isn't guaranteed due to LLM unpredictability", and "The terminal and MCP server tools used by Agent cannot block access to code governed by .cursorignore" (Cursor: Ignore file). Add your.envfiles anyway, and keep them out of git.- PR review only sees PRs. If you push straight to your main branch, or deploy from your laptop, a review that runs on pull requests never sees the change.
Replit: what it checks, and the traps
Replit's Security Center has three scan levels: "Level 1 is free. Level 2 requires a paid Replit plan." Level 1 checks dependencies, Level 2 adds an Agent review of your source code, and Level 3 adds an "external black-box penetration test of your live Preview" (Replit: Security scan levels). Separately, "Automatic dependency scans check project packages against public vulnerability records", and "Replit also runs a security scan before publishing"; with Block publishing of critical vulnerabilities on, "Publishing is blocked until the issue is resolved or dismissed" (Replit: Project Security Center).
The traps, mostly in Replit's own words:
- A passing publish check is narrow. "A passing publish check is not a guarantee that your application code has no vulnerabilities." The check that runs as Agent builds "is an early, lightweight check in the Agent workflow rather than a full codebase review", and "Auto-Protect covers dependency CVEs only."
- Secrets versus configurations. "Do not store API keys, passwords, or authentication tokens as configurations." Use Secrets, and check the separate Production app secrets under Publishing, since your published app can use different values from the editor (Replit: Secrets).
- Static Deployments get no secrets. "Secrets are available for all deployment types except Static Deployments." A static site that needs a key has to call a server that holds it.
- A secret in Secrets can still reach the browser if your code sends it there. Replit's checklist says not to pass secrets to the client side, including "Client-side JavaScript" (Replit: Security checklist).
The checks to run yourself, on any of the three
- Search the live JavaScript for secret keys. Open the published site in a logged-out browser, then DevTools → Sources, and search the loaded scripts for
sk_live_,sk-proj-,sk-ant-,sb_secret_,service_roleandAKIA. Check the live build, not the editor preview. - Try the files that should never download:
/.env,/.git/config, and the.mapfile next to a script. - Lock every database table to its owner. For Supabase, turn RLS on and write one policy per operation, for example:
alter table public.orders enable row level security; create policy "owners read their orders" on public.orders for select to authenticated using ((select auth.uid()) = user_id); create policy "owners add their orders" on public.orders for insert to authenticated with check ((select auth.uid()) = user_id);
Then stop users from editing columns likeis_adminorcredits(our role-column guide), and see Supabase RLS for vibe-coded apps and views that bypass RLS. For Replit's own database or another Postgres reached from your server, the rule moves into your API code: every query filters by the signed-in user. - Check every API route on the server. Hiding a button is not access control. Call each protected route without a session, then signed in as a second test user with the first user's record id; both should fail.
- Set the basic headers and HTTPS redirect (security headers for AI-built apps).
- Re-check after every deploy. The next prompt can undo any of this. The vibe coding security checklist is the short version.
If a key already leaked
Fix the code so the key is no longer served, then create a new key at the provider, deploy it, confirm nothing still uses the old one, and revoke the old one. If the key can spend money and you see usage you don't recognize, revoke it right away. For a Supabase secret or service_role key, follow our leaked-key guide; for what may stay public, see is the Supabase anon key safe to expose? and exposed API keys in JavaScript bundles.
Paste-in fix prompt (v0, Cursor or Replit Agent)
Review this app's security before I publish. Please: 1. List every environment variable and where it is used. Any secret (OpenAI, Anthropic, Stripe sk_ or rk_, database URLs, Supabase sb_secret_ or service_role, anything named KEY, SECRET, TOKEN or PASSWORD) must not have a NEXT_PUBLIC_ or VITE_ prefix and must only be read in server code (Route Handlers, Server Actions or server functions). Move any that break this rule and tell me which keys I need to rotate. 2. List every API route and server action, and make each protected one check the signed-in user on the server and only touch that user's records. 3. If the app uses Supabase, show RLS status and policies for every table. Replace any policy using "true" on private data with owner-only policies, one per operation, using "to authenticated", "using ((select auth.uid()) = user_id)" and, for insert and update, "with check ((select auth.uid()) = user_id)". Make sure users cannot update role, is_admin, plan or credits columns. 4. Make sure .env files are in .gitignore (and .cursorignore in Cursor), and that production source maps are not public. 5. Do not disable RLS, do not use a secret key in the browser to make anything work, and do not change unrelated code. Show me the changes first, then explain who can read and change what afterwards.
Review what the agent changes, run your tool's own scan again (v0's warnings, Cursor's review, Replit's Security Center), then repeat checks 1, 2 and 4 against the published site.
Check yours
Run the free LatchDog check on your published URL; it needs no sign-up and works the same whether the site came from v0, Cursor or Replit. Then work through the database and API checks above, which no outside scan can do for you.
What LatchDog does here (and doesn't)
LatchDog keeps watching your live app after launch. Starter ($19/month, up to 3 apps) and Pro ($39/month, up to 10 apps) re-scan it automatically every day and after every deploy (triggered by a deploy hook from your host or CI), and email you only when something changes. Nothing to install: you verify your domain once. It works from the outside on any public web URL, so it sits alongside v0's checks, Cursor's reviews and Replit's Security Center, not instead of them.
- Free check, no sign-up: security headers, HTTPS and the HTTP-to-HTTPS redirect, leaked secret keys in your JavaScript and source maps (shown masked), public source maps, and exposed
.env/.gitfiles. It does not test your database. - Deep scan, only after you verify you own the domain (DNS TXT record, a meta tag in your homepage's HTML, or a
/.well-known/latchdog.txtfile; the last two don't need DNS access): if your JavaScript contains a Supabase project address (supabase.co) and a public key, it sends oneSELECT ... LIMIT 1to each of up to 15 tables or views your site's code names with.from("...")and records only whether a row came back. Row contents are discarded and never stored. Every finding comes with a fix prompt you can paste into your AI tool. - Plans: the Free plan includes the free check and one deep scan after verification. Starter is $19/month for up to 3 apps and Pro is $39/month for up to 10 apps; both deep-scan every day and after every deploy, and email you only when something is new, worse or fixed. A one-time $9 Full Report gives you one more full deep scan without subscribing, and the $9 comes off your first month if you subscribe within 30 days. Not happy? Email support@latchdog.com within 7 days of a payment and that payment is refunded in full.
- Limits: it can't see your code, your environment variable settings, your policies, grants or API routes, and it can't sign in, so it can't check what one user can see or change of another's data. It does not test Replit's built-in database or any database other than Supabase. It's an outside-in check, not a penetration test or a guarantee.
Keep watching your app, not just checking it once
LatchDog keeps watching your live app after launch. Starter ($19/month, up to 3 apps) and Pro ($39/month, up to 10 apps) re-scan it automatically every day and after every deploy (triggered by a deploy hook from your host or CI), and email you only when something changes. Nothing to install: you verify your domain once.
Start with the free check (headers, HTTPS, leaked keys in your JavaScript, source maps, .env/.git). Open-table checks run after you verify your domain. See plans
Free, read-only public check: no sign-up, no card. Headers, HTTPS, leaked keys in your JavaScript (always masked), public source maps and exposed .env/.git files. Supabase table checks run after you verify you own the domain.
Want the open-table check too? Get my free deep scan: sign in with your email (no password) and verify you own the domain. Your first deep scan is free and adds CORS, more of your JavaScript and, if your app uses Supabase, whether anyone can read its tables and views with your public key.