Paste your replit.app address or your own domain. We read the app Replit published the way a stranger's browser does and flag secret keys in the JavaScript, database passwords, exposed files and missing headers. Free, about 20 seconds.
Passive and read-only. Works with any public site, including apps built with Lovable, Bolt, v0, Replit, Base44, Cursor, Windsurf and Claude Code.
AppInspected
App
Waiting for your address
Checked
–
Critical issues
–
Not checked yet
Your result fills in this tag. Nothing is stored.
Results
The free check can't see these
They need a deeper look at your database rules or code. The website security report covers more of them.
Replit does more security work than most builders. Its docs describe a Package Firewall that is on by default for every builder and blocks malicious or compromised packages before they install (npm, yarn, pnpm, pip and Go modules), automatic dependency scans against public vulnerability records, a lightweight check of the files Agent changes for common insecure patterns and hardcoded secrets, and a security scan before every publish. That scan only stops a publish when you turn on Block publishing of critical vulnerabilities; otherwise the app goes live and the finding waits for you in the Security Center. Secrets are encrypted (AES-256 at rest), and your app gets HTTPS.
On paid plans you can also run an Agent security scan from the Project Security Center (Tools pane): Security Agent builds a threat model and combines static analysis (Semgrep and HoundDog.ai) with AI review. You start it yourself, and Replit says it "is not a complete security review" and recommends rerunning it after major code changes and before publishing a new version. A Level 3 (AI pentest) scan adds a black-box pen test of the running app.
Replit is also clear about where its job ends. Its shared responsibility model leaves verifying the security of Agent's output, controlling who can access which parts of the app, and security testing of the app you build to you, and its own checklist says API credentials should always stay server-side.
The classic slip: a key is saved correctly in Secrets, but code that runs in the browser reads it, so the build copies the value into the JavaScript every visitor downloads. With a Vite frontend, any variable starting with VITE_ is bundled that way (secrets in VITE_ variables). This check reads the published app from outside, at the address your users visit, with no access to your Replit account and no paid plan needed, and shows what a stranger gets today, including anything changed since your last scan.
What we check on a Replit app
We load your page and follow up to 25 of its own scripts, the same files a visitor's browser downloads.
A postgres://, MySQL or MongoDB URL with a password in it. Replit's managed Postgres database is wired up for your server code; a connection string must never reach the browser.
Supabase keys
If your app uses Supabase, we decode its keys: the anon or publishable key is expected in the browser; a service_role or sb_secret_ key is critical.
Exposed .env and .git
Whether /.env or /.git/ can be downloaded from your app, which can happen when a server serves the whole project folder as static files.
Source maps
Whether your JavaScript's source maps can be downloaded, which makes the original code readable.
HTTPS and security headers
HSTS, Content-Security-Policy, framing protection and X-Content-Type-Options.
Is Replit safe?
Short answer: the platform is a sound base (blocked malicious packages, dependency scans, a scan before every publish, encrypted Secrets, HTTPS), but Replit's own docs leave the app's code, logins and data access to you, so a Replit app is only as safe as where its keys live and what its routes allow. A Replit app is in good shape when:
every API key is in Secrets and read only by server code, with nothing secret behind VITE_ or pasted into a frontend file;
every backend route checks who is signed in and whether that user may touch the record, and the database has its own rules (Row Level Security if the browser talks to Supabase);
Block publishing of critical vulnerabilities is on, the Security Center shows no open critical or high findings, and React and Next.js are on patched versions (see below);
the published app, checked from outside, shows no secret keys or exposed files (the free check above).
In our check of 364 newly launched apps, 44 ran on Supabase or Firebase with only public keys in the page, where the database rules decide everything and can't be seen from outside.
Example result
A made-up app with secret keys in its JavaScript. Every finding links to a fix you can paste into Replit Agent.
Where keys should live in a Replit app
Put API keys, passwords and tokens in the Secrets tool, never in Configurations (Replit says those aren't for sensitive values). Secrets reach your code as environment variables and sync to your published app each time you publish or republish; check Production app secrets under Publishing, Adjust settings. Static Deployments are the exception: they get no secrets at all, so everything a static app needs is public by design.
Find every key the browser can read
Search your frontend code for import.meta.env, VITE_ and any key pasted straight into a file. Values meant to be public are fine: a Supabase URL and anon or publishable key, a Stripe publishable key, an analytics ID. Anything else is a secret: secrets in VITE_ variables.
Create a new key with the provider, save it in Secrets, check Production app secrets in your publishing settings, and republish. Then revoke the old key: copies of your old JavaScript are already out there.
Protect every API route
A route your frontend calls can be called by anyone directly. Each one must check who is signed in and whether that user may touch that record, and should be rate limited, especially login and AI endpoints.
Lock down the database
Keep database credentials in server code only. If the browser talks to Supabase with the anon key, every table needs Row Level Security with sensible policies: Supabase RLS disabled. Never ship the service_role key: Supabase service_role key exposed.
Recheck after publishing
Paste your address above after each publish that touches keys, integrations or settings.
Or ask Replit Agent to do it
Paste this into Agent. Review what it changes before you publish.
Before I publish, do a security review of this app and report back before changing anything. 1) List every secret or environment variable the frontend (browser) code reads, including anything starting with VITE_ or read through import.meta.env, and any key written directly into a file, and say whether each value is meant to be public. 2) For each secret (AI provider keys, Stripe secret key, email API keys, database connection strings, the Supabase service_role key), make sure it is stored in Replit Secrets and only used in server code, and move any browser call that needs it to a backend route. 3) In every backend route, check that the user is signed in and is allowed to access the specific record, return only the fields the UI needs, and add rate limiting to login and AI endpoints. 4) If the app uses Supabase from the browser, list each table with its Row Level Security status and propose policies so users can only access their own rows. 5) Add security headers to the server (for an Express server, the helmet package) and make sure production source maps are off. Then apply the changes I approve, one at a time.
Keep React and Next.js patched
When the critical React Server Components vulnerability (React2Shell) was announced, Replit wrote that most new Replit apps weren't affected, but an app is if you or Agent installed an affected React (19.0 to 19.2.0) or Next.js version, and apps made with the Mobile app (beta) option were vulnerable from the start. Replit turned on Google Cloud Armor protections for replit.app, previews and custom domains, but still told builders to upgrade Next.js and the react-server-dom packages: open the Security Center, run a scan and choose Fix with Agent, and turn on the security scan for publishing.
Automatic dependency scans catch newly disclosed vulnerabilities in your packages, and Auto-Protect can prepare Agent patches for them, but it's off by default (a workspace admin turns it on in Advanced settings) and Agent fixes are billed like other Agent work. To see which Next.js version your live app runs, follow how to check a Next.js app for React2Shell; our free check also reads the version from your public JavaScript and flags affected App Router versions.
Security headers on Replit
Replit serves published apps over HTTPS, including on a custom domain. The other headers come from your app. Replit's checklist names X-Frame-Options, X-Content-Type-Options and HSTS as the basics. If your app runs an Express server, the Express security guide recommends the helmet middleware, which sets those and more (including a Content-Security-Policy) in one line:
import helmet from "helmet";
app.use(helmet());
Helmet's default Content-Security-Policy is strict, so test your app in the preview before publishing; if it blocks something you need, adjust that header rather than removing Helmet. Our security headers check page explains each header and has config for other hosts.
What this check can't see
It doesn't read your server code, test whether your API routes check who is logged in, or look at your database permissions, and it doesn't try to break in. A clean result means none of the problems we check for is visible from outside; it isn't a full audit. The website security report reads much more of your app (up to 40 scripts across 30 pages, admin and paywall checks in the browser, prices sent to checkout, AI APIs called straight from the browser, development and preview addresses such as replit.dev linked from your code) and can test Supabase rules with your own test accounts.
Website security report
$19 one time
For any website you own: a read-only review of up to 30 pages and 40 JavaScript files (found through your build manifest, routes and sitemap), app logic in the browser (admin and paid-feature checks, prices sent from the browser, AI APIs called directly), headers, cookies and CORS, domain and email records, libraries with known vulnerabilities, forgotten files and third-party scripts, with fixes written for your host. Optional database tests for Supabase or Firebase. Requires proof you own the site.
We repeat the outside checks every day and email you when something changes: a new key in your JavaScript, a removed header, a new third-party script, a certificate about to expire. Includes a live badge and one full website report every 30 days.
Replit blocks malicious packages, scans dependencies, reviews Agent's changes for hardcoded secrets and runs a scan before publishing (it only blocks a publish if you turn on Block publishing of critical vulnerabilities), but its shared responsibility model leaves the security of your app's code, logins and data access to you. Check where your keys ended up and whether your API routes check who is calling before real users arrive.
Are Replit Secrets visible to visitors?
Not by themselves: they're encrypted and reach your code as environment variables. But if frontend code reads one, the value is copied into the JavaScript the browser downloads, and then anyone can read it. Only use secrets in server code.
Does Replit's security scan replace this check?
No, they look from different sides. Replit's publish scan and Agent security scan read your project's code and packages from inside Replit; this check reads the published app from outside, at the address your users visit, the way a stranger would, free and on any plan, and you can rerun it any time. Running both is the safest habit.
Does Replit block publishing when its scan finds a problem?
Only if you turn it on. Replit always runs a security scan before publishing, but publishing is blocked for critical findings only when Block publishing of critical vulnerabilities is enabled (Enterprise organizations can require it). Otherwise the app goes live and the finding stays in the Security Center for you to review.
Is the Supabase anon key in my Replit app a problem?
No, it's designed to be public, as long as every table has Row Level Security turned on with policies that limit what each user can see. The service_role key is the one that must never reach the browser. See Is the Supabase anon key safe?
Does it work on replit.app addresses?
Yes. Paste the replit.app address or the custom domain your users visit. Apps set to private, password protected or invite only can't be checked, because we only see what a stranger sees.
Does the check test my API routes or database?
No. The free check only reads what a browser receives, so it can't see server code or database permissions. For Supabase, the website security report can add Row Level Security tests with test accounts you create.