Bolt.new Security: How to Test a Bolt App Before You Launch
AI App BuildersHetz Team

Bolt.new Security: How to Test a Bolt App Before You Launch

Built an app with Bolt.new? The security gaps that show up most often in Bolt-generated apps, how to test them yourself and how to fix them before launch.

Bolt.new lets you describe an application and get a running, full-stack project in minutes. The pages, forms, database tables and sign-in are generated for you, and you can deploy it to a live address the same day. That is a remarkable way to test an idea. It is also a reason to slow down before real users and real data arrive.

This guide is for people who built an app with Bolt and want to know whether it is safe to launch. It covers where responsibility sits, the gaps that appear most often in Bolt-generated apps, how to check them yourself, and how to fix them. If you also use other builders, our overview of AI app builder security compares them. For apps written in a code editor, read vibe-coded app security.

What Bolt Protects and What You Still Own

Bolt runs its own platform, handles accounts for its users and keeps its infrastructure patched. Your application is a different system, and its security rules are part of what you ship.

Bolt is responsible forYou are responsible for
The builder service and its accountsWhich data each signed-in user may read and change
The security of its own environmentSecret keys and where they appear in your code
Infrastructure patchingServer-side checks for roles, prices and limits
Tools that generate codeRate limits, payments and the logic of each feature

Most problems in generated apps are not caused by the platform. They come from an app that lets a user reach data they were never meant to see, and that nobody tested with a second account.

Why Bolt Apps Need Explicit Rules

Bolt writes code for the feature you describe. If you ask for "a dashboard that shows my orders", it builds a dashboard that shows orders. It does not automatically ask who owns each order, which user is asking for it, or whether the API should refuse to return someone else's order. Those rules have to be stated, and then they have to be tested.

Many Bolt projects talk to a hosted database directly from the browser. That approach is fast and perfectly acceptable when the policies on each table are correct. When they are missing or too broad, the public key the browser holds becomes a way into the table. Supabase's row level security guide explains how policies decide which rows each request may read or write.

The Most Common Gaps in Bolt Apps

Data reachable by any signed-in user

A table that stores orders, messages or invoices needs a rule that compares the row's owner with the current user. Without it, any account can read every row. This is the most frequent serious finding we see in generated apps, and it is also the easiest to prove with two accounts.

Secret keys in the frontend

Public keys are meant for the browser. Service keys, payment secrets and AI provider keys are not. A generated feature sometimes places one of these in a frontend file so that it works on the first try. Anyone can open the developer tools and copy it.

Admin functions that trust the browser

The admin page may be hidden from normal users, while the API routes it calls accept any request with a valid session. A normal user who calls those routes directly can change data that only admins should change.

Prices and limits calculated in the client

A checkout page that sends the price, quantity or plan to the server is trusting the browser. If the server accepts the value without recalculating it, a user can lower the price or unlock a plan they did not pay for.

Unlimited sign-up, login and reset requests

Without rate limits, attackers can guess passwords, create large numbers of fake accounts and trigger password reset emails. If the app calls an AI model or a paid API on each request, abuse also becomes a cost.

Files and webhooks without checks

Uploaded files in a public storage bucket can be downloaded by anyone who has the link. Payment and other webhooks that do not verify their signature can be called by anyone who knows the address, which lets an attacker fake a successful payment.

A Quick Map of What to Check

CheckWhat a failure looks likePriority
Per-user access on every table or routeA second account reads the first account's rowsCritical
No secret keys in the frontendA service key appears in the page sourceCritical
Admin and role checks on the serverA normal account calls an admin route successfullyHigh
Server-side prices and plan limitsThe browser's price is accepted unchangedHigh
Private storage with signed linksA file loads from a logged-out browserHigh
Webhook signature verificationAn unsigned request marks an order as paidHigh if you take payments
Rate limits on auth and AI callsHundreds of login attempts succeed without a blockMedium

How to Check Your Bolt App Yourself

You can find the most obvious problems in an afternoon:

  1. Use two accounts. Create user A and user B. Sign in as A, record the requests that load A's data, and replay them as B.
  2. Read the network tab. Use the browser's developer tools to list every API and database call the app makes. Each call is a candidate for a boundary check.
  3. Search the source. Look in the loaded scripts for words such as "secret", "service_role", "sk_live" and your AI provider's key prefix.
  4. Call admin routes as a normal user. Use the same request the admin page uses. A normal account should be refused.
  5. Change a price in the request. On checkout, send a lower amount and see whether the server accepts it.

These checks cover the basics. They do not sign in across every role, chain small weaknesses together or test every route that Bolt generated, which is where a fuller test earns its cost. Our guide to automated vs manual penetration testing explains the trade-offs.

Testing a Bolt App End to End

Hetz tests the live app on your verified domain, whichever builder produced it. You add your test users, and AI agents map the pages and API calls, sign in as each role and try to cross every boundary. Only findings with proof reach the report. Each one includes the exact request and response, and a fix written for your stack, so you can paste it into Bolt. When you change the app, a one-click retest confirms that the fix holds.

If you want the Bolt-specific view, our Bolt security testing page describes what is covered.

Fixing Issues in Bolt

Bolt does its best work with narrow requests. A prompt that names the endpoint, the evidence and the expected rule is far more likely to produce a correct change than a general request to "make it secure":

"The order detail endpoint returns any order when called with a valid session. A request signed in as user B for order 1042, owned by user A, returned the order. Return the order only when its owner matches the signed-in user. Respond with 404 for any other order. Do not change other endpoints."

Ask for one fix at a time. After each change, rerun the same two-account test. A finding is closed when the attack fails, not when the code looks reasonable.

Reading the Results of a Two-Account Test

A two-account test produces a simple question for every request: did the second account receive something only the first account should have? Not every response is a finding. A list that shows only public products is fine. A list that shows another customer's orders, names or addresses is a critical problem, even if the page layout hides those fields. Look at the raw response, not only the screen, because the interface often displays less than the API returns.

Pay attention to partial leaks as well. An endpoint that returns the right record but includes an internal field, such as an email address or a hidden role, still exposes data. The OWASP API Security Top 10 lists excessive data exposure and broken object level authorization as separate risks for this reason. Each one needs its own check, and each one needs its own fix.

Rules to Put in Your Project Instructions

The fastest way to fewer findings is to state the rules before the features exist. Include these in your project's instructions or in the first prompt for each feature:

  • Every table and API route must check the signed-in user against the row's owner, unless I say the data is public.
  • Never place secret keys in frontend code. Use server-side functions for anything that needs a private key.
  • Check roles on the server for every admin action.
  • Calculate prices, discounts and plan limits on the server, and ignore values the browser sends for them.
  • Verify the signature of every incoming webhook before acting on it.
  • Add rate limits to sign-up, login, password reset and any call that costs money.

These rules reduce the number of problems the model creates. They do not replace testing, because a model can still miss a route, but the findings that remain are smaller and quicker to fix.

Next steps

Before you take real users or payments, check the access rules with two accounts, move every secret to the server and test the checkout path. To see what a full test costs and what it includes, read our guide to penetration testing cost, or compare options on pricing. When you are ready, start a scan.

FAQ

Frequently asked questions

Keep reading