Vibe Coding Security: Three Incidents, a Scan, Four Controls
Vibe coding security from primary sources: what failed at Lovable and Replit and in Escape's scan, and the Microsoft controls we map to each.
In this article · 7 sections
In a June 2026 research note, the Cloud Security Alliance (CSA) names NIST AI RMF, the OWASP LLM Top 10, CSA MAESTRO and CSA AICM among “the major AI security frameworks in active use”. Its finding is that none of them “provide dedicated, accessible guidance for citizen developers who build and deploy AI-powered applications without professional security oversight.” That leaves vibe coding security with IT. The same note explains why the unit of review is the app and not the platform: “The platform is sanctioned; the application is not.”
The public record already holds a free curriculum. This article covers three incidents and one vendor scan, and each is told only from its primary source. The control habit mapped to each case is our analysis. It is not a vendor claim and not a Microsoft claim. The Escape section also cites one analyst quote given to the press, not published research.
The mapping follows one rule. The habit applies no matter which tool built the app. The Microsoft feature is how you enforce that habit for apps built on Microsoft platforms. Learn scopes Limit sharing to “canvas apps, flows, and agents” in managed environments (its code apps overview adds: “Code apps follow canvas app sharing limits.”), and it scopes Dataverse security roles to data operations against Dataverse. For an app built and hosted in Lovable or Replit, the habit becomes a review your team runs before go-live. In our view, a rebuild on a governed platform is worth discussing when the data rules exist only in the screens, or when the app runs on a tool that is being retired.
The result is three incidents, one scan and four habits. You leave with a checklist, not a list of things to fear.
Lovable CVE-2025-48757: data-access rules as a launch gate
The NVD record reads: “An insufficient database Row-Level Security policy in Lovable through 2025-04-15 allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites.”
Lovable disputes the CVE. The record adds: “NOTE: this is disputed by the Supplier because each individual customer of the Lovable platform accepts a responsibility over protecting the data of their application.”
The record fields matter before you repeat this CVE to your CISO:
- The status is Deferred.
- The record carries the tags “disputed” and “exclusively-hosted-service”.
- The 9.3 CRITICAL score is a Secondary CVSS 3.1 score from
cve@mitre.org. NVD did not assess it.
The scan figures come from the researcher, Matt Palmer, in his own statement. In the disclosure email to Lovable that his post reproduces, Palmer writes that he works in Developer Relations at Replit, a Lovable competitor, and that he identified the security concern with his colleague Kody Low. By Palmer’s account, “The scan, completed on March 21st, identified 303 endpoints across 170 projects (approximately 10.3% of the 1645 analyzed) with inadequate RLS settings.” He also writes that Lovable’s later “security scanner” “merely checks for the existence of any RLS policy, not its correctness or alignment with application logic.” That is the researcher’s account.
Palmer’s scanner point is the core lesson here. A policy that exists and a policy that is correct are different findings.
In our analysis, the control habit that addresses this failure is a per-table, per-role access review before launch. Microsoft features and guidance support that habit in two places:
- Apps on Dataverse. Learn’s security model says data operations “run in the context of a user.” The security role therefore decides what each user can read and write.
- Power Apps code apps. The configuration guidance is direct: “Don’t store sensitive user or organizational data in the app.”
There is a practitioner caveat on code apps. The docs say the code app endpoint “doesn’t currently support IP-based access restrictions.” Conditional Access in Entra ID is your lever for location and IP, and a network rule is not. Our view: the role that causes trouble is the one written during the prototype and never revisited before real users arrived. Our guide to when to prompt and when to call an architect puts security-role changes on the architect’s side.
Takeaway: no AI-built app goes live until someone has reviewed who can read and write each table, per role. A policy that merely exists is not a pass.
Lovable’s April 2026 incident: define “public” and make sure reports reach security
Lovable’s own statement says a researcher reported on April 20 that data in public projects “could be accessed by any authenticated user.” For the window from February 3 to April 20, 2026, Lovable says chat history and source code of public projects were reachable by “any Lovable user provided they had a project link.” Lovable also states: “Private projects and Lovable Cloud were never impacted.” It adds: “We shipped a fix within two hours.”
The process failure is the part to study. Lovable says valid HackerOne reports were “closed instead of being escalated” because of “outdated internal documentation.” It says the first report arrived on February 22, 2026.
Lovable also describes a definition problem. In its early days, it says, free-tier projects were public by default. It also says many users understood “public” to mean their published app was visible on the web, “not that someone could read through their build conversation.” Lovable’s timeline puts private-by-default for all new projects in November 2025. Lovable marks that date as incorrectly stated in its original communications.
In our analysis, the habit that addresses this failure has two parts: define what “shared” means, and make reports escalate. On Microsoft platforms, three features show where that definition lives:
- Limit sharing. Per Learn, “admins can limit how broadly users can share canvas apps, flows, and agents.” The code apps overview adds: “Code apps follow canvas app sharing limits.” Limit sharing has three caveats:
- Rules are enforced when a user tries to share.
- Existing users keep the access they already have.
- Managed environments require premium licenses.
- Copilot Managed Runtime. Microsoft announced general availability on November 17, 2026, rolling out to tenants. It keeps an app “private to its owners until shared”, but its own caveat applies: “Organization-only links can include guest users when guest sharing is allowed because guests are part of the organization’s directory.”
- Copilot Cowork App skill. This one illustrates what “shared” means inside a tenant. It is not a control. Learn says to send the link to “anyone in your organization who can use Microsoft 365 Copilot”. It also warns: “Anyone with the link can open and use the app, including all its data, so share responsibly and only with users who should have access.” Review those links alongside the Copilot oversharing controls IT already runs.
Add one process habit. Once a quarter, read the vendor post-mortems for every AI builder your users touch. Pair that with an internal reporting path that a person actually triages. Wiz, a cloud security vendor, describes a flaw it found in Base44, which it calls an AI vibe coding platform. By Wiz’s account, Wix fixed the flaw within 24 hours of Wiz’s July 9, 2025 disclosure and confirmed there was no evidence of past abuse. Wiz puts the reason plainly: “every customer inherits the vendor’s security posture.”
Takeaway: write down what “shared” and “public” mean in your tenant, then confirm that your own report channel escalates.
Replit and SaaStr: environment separation and a restore path you have tested
Here is the timeline in UTC, with each quote dated to its own post:
- 2025-07-18, 04:48. Jason Lemkin posts that Replit deleted “our entire database” during a code freeze.
- 2025-07-18, 16:08. Lemkin reports that Replit had told him a rollback was impossible. He then writes: “It turns out Replit was wrong, and the rollback did work.”
- 2025-07-18, 16:09. Lemkin’s lesson, in a follow-up post: “But you can’t overwrite a production database”.
- 2025-07-19, 15:12. Lemkin’s lesson, in a later post: “There is no way to enforce a code freeze in vibe coding apps like Replit. There just isn’t.”
- 2025-07-20, 17:32. Replit CEO Amjad Masad replies: “Unacceptable and should never be possible.” He says Replit “started rolling out automatic DB dev/prod separation to prevent this categorically,” and points to backups: “It’s a one-click restore for your entire project state in case the Agent makes a mistake.”
In our analysis, the habit that addresses this failure is to keep development and production in separate environments. No agent or maker credential should hold production write rights.
For apps on Dataverse, security roles enforce the second half of that habit. Learn says code “will only be able to perform operations based on the privileges assigned to the user account through security roles or team membership.”
Pipelines in Power Platform enforce the first half. The solution artifact “must pass through pipeline stages in sequential order,” which “ensures customization can’t bypass QA environments or your approval processes.” Check the licensing before you promise this to anyone. Learn says “All other environments used in pipelines must be enabled as managed environments.” and “Licenses granting premium use rights are required for all managed environments.”
The most important caveat in this article comes next. Pipelines store solution backups, but “Pipelines, or solutions in general, don’t contain data stored within Dataverse tables.” A code rollback is not a data rollback. Our recommendation is to test a data restore separately, on a schedule, and to record who ran it. Our rollback plan for the solution and the data covers both halves.
Takeaway: in Lemkin’s account, the rollback worked after Replit had said it could not. Do not plan around that outcome. Prove your own restore before you need it.
Escape’s scan of 5,600+ apps: secrets out of the code, and a scan before publishing
This case is a vendor scan, not an incident. Escape sells DAST scanning. In its methodology post, Escape says it “analyzed over 5,600 publicly available applications and identified more than 2,000 vulnerabilities, 400+ exposed secrets, and 175 instances of PII (including medical records, IBANs, phone numbers, and emails).”
Read those numbers with Escape’s own caveats:
- Escape calls the results “lower-bound estimates” from passive scans.
- Escape says its sample is “heavily skewed toward Lovable deployments.”
One analyst outside Escape puts secrets first. Gartner’s Pete Shoard told Computerworld: “The number one risk at the minute is hard-coded secrets being uploaded through vibe-coded applications to GitHub, and then providing a route in”. That is a quote to the press, not published research.
In our analysis, the habit that addresses these findings is to keep secrets out of app code and to help keep users from unintentionally exposing organizational data. Two Microsoft features apply:
- Environment variables backed by Azure Key Vault. Learn says these are “currently limited for use with Power Automate flows, Copilot Studio agents, and custom connectors.” Canvas apps are not on that list.
- Data policies, for the PII side. Learn describes them as guardrails “to help prevent users from unintentionally exposing organizational data”. It also says: “By default, no data policies are implemented in the tenant.”
Neither feature scans app code for secrets or PII. The scan is a process step we recommend. Pick your tool on its merits.
Takeaway: keep secrets out of app code, and run a secret and PII scan before anything gets a shareable link.
Vibe coding security at a glance: failure, control, caveat
The controls below are our analysis. Microsoft does not claim any of these features would have stopped these cases.
Lovable CVE-2025-48757
- What failed (per primary source): Insufficient RLS policy, disputed by Lovable
- Control (our analysis): Review read and write per table and role
- Microsoft feature (apps on Microsoft platforms): Dataverse security roles; code apps data guidance
- Caveat or licensing: No IP restrictions on code app endpoint
- Preview: No
Lovable April 2026
- What failed (per primary source): Public project data exposed; reports closed, not escalated
- Control (our analysis): Define “shared”; make reports escalate
- Microsoft feature (apps on Microsoft platforms): Limit sharing; Copilot Managed Runtime private default
- Caveat or licensing: Premium licenses; existing access stays; escalation is process
- Preview: No (Microsoft announced Copilot Managed Runtime generally available on November 17, 2026, rolling out to tenants)
Replit and SaaStr
- What failed (per primary source): Development agent deleted production data
- Control (our analysis): Separate dev and prod; test data restore
- Microsoft feature (apps on Microsoft platforms): Pipelines in Power Platform; security roles
- Caveat or licensing: Managed environments, premium licenses; no Dataverse data
- Preview: No
Escape scan (vendor, lower bound)
- What failed (per primary source): Exposed secrets and PII in public apps
- Control (our analysis): No secrets in code; scan before sharing
- Microsoft feature (apps on Microsoft platforms): Key Vault variables; data policies; scan: none in this article (process step)
- Caveat or licensing: Flows, agents and custom connectors only; no default policies
- Preview: No
Four checks to run this quarter
AI-built apps fail where a habit is missing, not where AI is used, so each check below tests for a habit.
- Data access, per table and role. For each Dataverse-backed app, can you name the security roles that grant Create, Read, Write and Delete on every table it uses? Has someone outside the build team signed off on them? For apps hosted elsewhere, has someone tested the row-level rules while signed in as a different role?
- “Shared” defined, and reports escalate. In the Power Platform admin center, do your managed environments have Limit sharing rules set? When did a test report last travel through your internal channel and reach a named person?
- Production separated, restore tested. Does any maker or agent account hold write privileges in a production environment? When did you last restore Dataverse data, not a solution, and verify the records?
- No secrets in code, scan before sharing. Do your flows, Copilot Studio agents and custom connectors pull secrets through Key Vault environment variables? Does at least one data policy exist? Does every app pass a secret and PII scan before it gets a shareable link?
CSA’s advice on where to start is the right call: “Organizations should begin by establishing visibility before attempting control.” CSA also advises organizations to “develop a tiered governance model that distinguishes between internal tools handling non-sensitive data, applications processing personally identifiable information or regulated data, and applications that incorporate AI API calls or agentic functionality.” The third kind covers apps that call AI or act as agents. It does not cover every app built with AI.
Our view is to run all four checks in full on the second and third kinds first. That is where vibe coding security work pays off fastest.
For apps hosted outside Microsoft platforms, visibility comes from people and procurement rather than an admin center. Ask each team lead which AI builders their people use and which links have gone to customers or other departments. Then check expense claims for builder subscriptions.
Takeaway: start where CSA says to start, with visibility. List the AI-built apps you know about, sort them into CSA’s three kinds, then run all four checks first on the apps that handle personal or regulated data, or that call AI or act as agents.
Bring one app to a 30-minute review
Pick the app your teams share most widely, or the one they plan to build next, and walk it through these four controls with us. On the call we look at what you have built or plan to build with AI, name the top three risks and recommend one next step. The call is the first step of our AI security audit: a check of Copilot, agents, connectors and AI-built apps across your Microsoft tenant, with ranked findings, a fix plan and a re-check. If one outside-tool app is heading for real users, production readiness for AI-built apps covers the code review, company sign-in and the harden or rebuild call.
Related articles
What Is AI Development Governance? A Plain Definition
What is AI development governance? How an organization governs the apps people build with AI: a plain definition, an eight-part model, and how it differs from APM.
Customer-Facing Agent Governance: What to Settle Before Launch
Customer-facing agent governance on one page: the written boundary a department head brings IT before a Customer Conversation harness agent goes live.
Copilot Cowork Governance for IT: One Control Map for Managed Runtime Apps
Copilot Cowork governance for IT leads: one control map for Cowork, Copilot Studio and CLI apps on Copilot Managed Runtime, and the gaps to close.