LatchDog

← Guides

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: 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:

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:

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:

The checks to run yourself, on any of the three

  1. 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_role and AKIA. Check the live build, not the editor preview.
  2. Try the files that should never download: /.env, /.git/config, and the .map file next to a script.
  3. 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 like is_admin or credits (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.
  4. 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.
  5. Set the basic headers and HTTPS redirect (security headers for AI-built apps).
  6. 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.

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.