Is my Cursor app secure? What to check before launch
Check what your Cursor app sends to every visitor: secret keys in its JavaScript and database tables anyone can read without logging in. Paste the address into a scan to see both, then fix each with a prompt to your AI.
How Cursor apps are usually built
Cursor writes code in whatever stack you use, so the app can be anything: React with Supabase, Next.js, Firebase, an API you host. The risks follow the stack, and the agent will put a key wherever it makes the code work.
What goes wrong
- Secret keys in the JavaScript: a key the browser can see is a key anyone can copy. Stripe, OpenAI and Anthropic keys get used to run up bills; a Supabase service_role key opens the whole database.
- An open database: Supabase tables without Row Level Security, or a Firebase database whose rules let anyone read, are open to every visitor.
- Source maps left public, which publish your source code next to the app.
- Nobody watching: the app goes down at night and the first to notice is a customer.
Specific to Cursor
Before deploying, ask the agent where every key is read. A key in a client component, a front-end config file or a committed .env file is one to move and rotate.
How to check it
- Paste your app’s address at netwarden.com/scan. It reads your pages and JavaScript the way any visitor can.
- Each finding says what is open and what someone could do with it, with a prompt to paste into your AI.
- Claim the app to keep it checked, and add an uptime check so you hear when it goes down.
A prompt to paste into your AI
Go through this project and find every secret key, token or password in code that runs in the browser, including environment variables the build exposes to the client. Move each one to server-side code or an edge function, and tell me which keys I must rotate because they were already published.