Skip to main content
Intelligence Simplified
An office glass door left ajar at night with cool light spilling into a dark hallway.

April 21, 2026

Vibe Coding Security: Lessons From the Lovable Exposure

Lovable said a permissions change re-exposed chats on public projects. The lesson for vibe coding security: know what public means in your tools.

Covers week of April 20, 2026.

This week Business Insider reported on Lovable’s security stumble. A researcher said they could see other users’ code, AI chat histories and customer data on public projects. Lovable first said viewing public projects’ code was intended, then acknowledged a real error: in February, while unifying permissions in its backend, it accidentally re-enabled access to chats on public projects, and it has since reverted that change. For anyone thinking about vibe coding security, this is a useful story, and not because Lovable is uniquely careless.

Lovable later published its own account, including a note that some dates in the first communications were wrong. Read the timeline as late 2025, not as a single clean “private since December.”

Two settings that get mixed up

Lovable has two independent access settings, and mixing them up is how people get surprised:

  1. Editor access (project access). Who can open the project in Lovable: source code, chat history, work in progress, unpublished changes.
  2. Published-URL access (website access). Who can visit the live app at its public URL.

Publishing does not grant editor access. Changing editor access does not change who can load the published app. “Public” in the editor is not the same as “the website is live.”

What “public” actually exposed

On public projects, editor access historically included code and chats, not just a remix button. After the February regression, Lovable says public project chat history and source code could be reached by a Lovable user who had a project link, not necessarily by anyone on the open internet who guessed a URL. That is still a real exposure. It is a different shape than “indexed on Google.”

Private projects and Lovable Cloud were, by Lovable’s account, not in the same incident.

Private by default arrived in late 2025

The defaults moved in stages, and Lovable later corrected some of the dates it first gave:

  • Before November 6, 2025, free-plan projects were public by default, and only paid workspaces could change visibility.
  • From November 6, 2025, new projects defaulted to workspace-only access across plans.
  • Remaining workspaces that still defaulted to public were updated during December 2025.

So “private by default since December” is roughly right for remaining workspaces, and too neat for new projects, which had already started flipping in November. If you created something in 2025, check the setting rather than trusting the headline.

The vibe coding security lesson for your own app

When you build with a platform like Lovable, Replit or Bolt, there are two layers of security: the platform’s and your app’s. You don’t control the first one. You do control the second, and it’s where most real exposures happen.

Here’s what I’d check in any app built on one of these platforms:

  • What is public, exactly? Open your project settings and write down what editor access exposes (code, prompts, chat history, environment variables) and what the published URL exposes. They are different lists.
  • Where do your secrets live? API keys and database credentials should be in the platform’s secret store, never in code or in a chat with the AI. Assume anything you’ve pasted into a chat could be seen someday.
  • Who can read each table? If your app uses a hosted database, every table should have rules that limit rows to the right user. Test it from a second account and from a logged-out browser.
  • Can you rotate keys quickly? If you learned tomorrow that a key leaked, could you replace it in 15 minutes without breaking the app?

Why refactors are where permissions break

Lovable’s own explanation is worth noticing: the issue came from “unifying permissions.” I’ve seen this pattern many times. A team cleans up how access works, and in the process one old rule quietly disappears.

The fix isn’t to stop refactoring. It’s to have tests that describe who may see what, so a refactor that breaks a rule fails loudly before it ships. For an app built mostly by prompting, those tests often don’t exist yet. Writing them is one of the most valuable things you can do before launch, and AI tools are good at helping once you’ve stated the rules clearly.

A 30-minute review you can do today

  1. List every project you have on a vibe coding platform and its editor access setting, separate from whether the app is published.
  2. Make anything that doesn’t need to be shared private.
  3. Search your code and project chats for anything that looks like a key or password. Rotate anything you find.
  4. From a logged-out browser, try to load your app’s data endpoints directly. You should get nothing back.
  5. Write down three access rules for your app in plain English. Those become your first security tests.

If that review turns up things you don’t know how to fix, you’re in good company. The build was fast; securing it is a different job, and it’s a big part of what I call the last 20% of a vibe coded app.

I help builders close exactly these gaps. Here’s how I approach Prototype to Production, from auth and permissions to release. If your app is close and you want it to hold up with real users, let’s talk.

Sources

Russ Frisch

• Founder and software engineer

We take fixed-price work on data, AI workflows, and finishing apps. You work with the Intelligence Simplified team.

Expertise:

Data migration AI workflows Workflow automation Prototype to Production