Analysis · DiggingBeagle record

A working vibe-coded app tells you almost nothing about its security boundary

A working interface does not prove that a generated application enforces authorization, business rules or network policy. This comparison separates deployed exposure, coding benchmarks, iterative development and model experiments, while identifying which actors and runtime components hold the relevant responsibilities.

Published
Oct 7, 2026

Overview

In the reported Linkable follow-up, the backend accepted an unauthorized write marking a record as paid even though the normal interface offered a payment workflow. That is the central distinction in this research: an AI-built application can satisfy its visible requirements while the component holding the data still accepts an operation it should reject.

The Lovable disclosure, matched coding-agent experiments and academic benchmarks examine different settings, so they cannot supply one vulnerability rate for all vibe-coded software. Together, however, they show why feature tests and security tests answer different questions. A query can be parameterized correctly while the caller is still unauthorized; a valid number can violate a business rule; an authentication component can protect one protocol and leave another uncovered.

Ten evidence sources, not one security score

Evidence Setting and denominator Reported result What the result supports
Lovable RLS disclosure 1,645 discoverable projects, scanned in March 2025 303 inadequately protected endpoints across 170 projects Authorization failures in the sampled deployed projects, not a current platform-wide prevalence estimate
Escape field study More than 5,600 public applications across several platforms More than 2,000 vulnerabilities, 400+ exposed secrets and 175 PII exposures Repeated deployed exposure, with sampling and platform-imbalance limitations
Tenzai cross-agent study Five agents building three matched applications each 69 vulnerabilities across 15 applications Recurring failures under one controlled app-building setup
DryRun development study Two application specifications developed through 30 sequential pull requests 26 pull requests introduced vulnerabilities; 143 issues across 38 scans Repeated defects during development, as measured by the vendor's own analysis
BaxBench 392 backend-generation tasks Around half of functionally correct solutions were insecure on average Functional success does not establish exploit resistance
SUSVIBES 186 feature-request tasks SWE-Agent with Claude 4 Sonnet: 57% functional correctness and 11.8% secure solutions Separate outcomes within the published evaluation, not an industry-wide rate
SecureVibeBench 105 C/C++ tasks from 41 OSS-Fuzz projects Best tested configuration: 23.8% correct and secure solutions Security failures also occur in repository-level, multi-file tasks
VibeApps study, version 2 200 deployed web applications sampled from the study's corpus 1,471 vulnerabilities; 180 of 200 applications affected Findings within a defined deployed sample, not all AI-built software
Tenzai Base44 comparison One builder, three specifications and five model backends 254 vulnerabilities across 15 builds Within-experiment differences associated with model choice
SecureVibe training research Security-focused training evaluated on coding benchmarks Security pass@1 gains of 6.9 points on BaxBench and 11.5 on unseen SUSVIBES CWE categories Targeted training can improve measured security behavior without eliminating failures

A finding, an affected application, a pull request and a benchmark solution are different units. Their counts cannot be added, and their percentages cannot be averaged into a meaningful ecosystem score. In particular, Tenzai's 69 and 254 findings do not show that security worsened over time: the builder, model cohort and testing context changed between those studies.

The backend must reject what the interface never offers

Lovable supplied the application-building platform, while Supabase supplied the backend used in the examined setup. Keeping those identities separate explains where the relevant authorization decision happened.

Lovable applications in the examined setup were primarily client-driven and used Supabase for backend storage and authentication. A Supabase anon credential appearing in browser code was not, by itself, the vulnerability. The real authority boundary was Row Level Security in the database. If that policy allowed a request that the interface never intended to expose, changing the browser-visible request could reach data outside the intended UI path.

Matt Palmer reported that a March 21, 2025 scan found 303 inadequately protected endpoints across 170 of 1,645 analyzed projects. The scan only inspected homepages and modified observed requests, so it was not an exhaustive assessment of every surface. In a later Linkable follow-up, Palmer reported a more concrete integrity failure: after changing the request context, an unauthenticated request could insert a record with payment_status set to paid.

The Supabase RLS documentation explains why read and write operations need distinct policy checks. Hiding an action in the interface does not remove the backend operation, and restricting reads alone does not establish that writes enforce the same ownership rules.

The CVE record also matters because responsibility is disputed. The public record describes insufficient RLS that could permit unauthenticated reads or writes, while recording Lovable's position that customers are responsible for protecting their own application data. That dispute changes attribution, but it does not remove the engineering question: which server-side rule rejects a request once the frontend is bypassed?

The coding-agent failures were concentrated in contextual policy

Tenzai's cross-agent report, by Ori David, describes testing performed in December 2025. Its article page displays June 25, 2026, while Tenzai's blog index lists January 13, 2026; the first-publication date remains unresolved. Cursor, Claude Code, OpenAI Codex, Replit and Devin each built matched applications with the same prompts and technology stacks. Tenzai then tested the 15 applications and reported 69 vulnerabilities. The report describes iterative development, so it should not be reduced to a one-shot generation test.

Tenzai reported no exploitable SQL injection or cross-site scripting (XSS) across the tested applications, attributing these outcomes to parameterized queries and framework protections. That result did not extend to contextual policy: a framework can preserve the code-data boundary without deciding whether a particular user should own an order or approve its deletion.

Authorization was one example. Tenzai documented APIs that checked ownership only for some roles or only when a user was already authenticated, leaving other request paths improperly authorized. Business invariants were another: four of five agents allowed negative order quantities in one task, and three of five allowed negative product prices. All five agents introduced server-side request forgery (SSRF) in the link-preview task, where the application had to decide which user-controlled URLs were safe for the server to fetch.

The prompt conditions differed across these tests. The link-preview task received no security guidance, while Tenzai says authorization mistakes survived clear and detailed instructions. The results therefore support neither ignoring specification quality nor treating a security reminder as proof that the generated checks are correct.

Missing controls are a different failure from buggy controls

A second layer in the same benchmark concerned protections that were mostly absent rather than incorrectly implemented.

Tenzai reports that none of the 15 generated applications included proper cross-site request forgery (CSRF) protection, and none added the security headers it checked. Fourteen login flows lacked rate limiting or account lockout; the single implementation was reported bypassable through X-Forwarded-For. The report qualifies the header finding: deployment infrastructure can add those headers, so absence from generated code is not by itself a verified finding about every production response.

That distinction matters operationally. A code review focused on the lines the agent wrote can miss controls that never appeared in the diff at all. Security therefore needs an expected-control inventory as well as vulnerability scanning: authentication throttling, applicable CSRF protection, response headers, authorization tests, network egress rules and similar gates must be checked even when no generated line looks suspicious.

DryRun Security examined Claude, Codex and Gemini as they developed two applications through sequential pull requests. Its March 11, 2026 announcement reports that 26 of 30 pull requests introduced at least one vulnerability, that 143 issues appeared across 38 scans, and that no tested agent finished with a fully secure application. Those denominators describe different parts of the experiment and should remain separate.

The announcement supplies a concrete example of incomplete integration: authentication middleware protected REST APIs but was not applied to WebSocket endpoints. The protection existed, but not on every route to the protected behavior. A search for a middleware file would miss that distinction.

DryRun designed the experiment and analyzed the builds with its own system. These are vendor-reported findings, not independent confirmation of an industry-wide pull-request failure rate. Their contribution is a development-level explanation: checking that a control exists and checking that every relevant feature uses it are different review tasks.

Academic benchmarks measure functionality and security separately

The broader benchmark literature supports the separation between "works" and "safe" without reproducing Tenzai's exact experiment.

BaxBench evaluates 392 security-critical backend coding tasks with functional tests and expert-designed exploits. Its project report states that 62% of solutions from the best tested model were either incorrect or vulnerable, and that around half of functionally correct solutions were insecure on average.

SUSVIBES uses 186 feature-request tasks derived from real open-source changes that introduced vulnerabilities. In the published ICML 2026 results, SWE-Agent with Claude 4 Sonnet reached 57% functional correctness, while only 11.8% of solutions were secure. The paper also reports that preliminary security strategies, including adding vulnerability hints to the task, did not eliminate the gap.

SecureVibeBench adds a different task shape. Its 105 C/C++ tasks come from 41 OSS-Fuzz projects and reconstruct points where real human developers introduced vulnerabilities. The benchmark requires multi-file changes in larger repositories and evaluates both functionality and security with static and dynamic oracles. Across five coding agents paired with five models, the best tested configuration produced only 23.8% solutions that were both correct and secure.

The SecureVibeBench paper therefore broadens the setting without supplying a universal failure rate. Its tasks concern C/C++ repository changes reconstructed from vulnerability histories, whereas the app-builder studies examine generated applications. Similar failure mechanisms do not make those populations interchangeable.

These studies use different languages, tasks, agents and evaluation methods, so their percentages should not be combined into a single industry-wide rate. Their shared value is structural: correctness metrics can reward software that satisfies the requested feature while leaving an exploitable security boundary behind it.

A deployed-app study needs an exact version and sample

The version 2 preprint of Understanding the (In)Security of Vibe-Coded Applications, dated June 23, 2026, describes a corpus of 10,517 applications. The authors randomly sampled 200 from 1,170 publicly deployed web applications and report 1,471 vulnerabilities, with 180 of the 200 audited applications affected. These are the figures for that specific version.

The paper combines agent-assisted discovery with human validation and groups root causes around memory, objectives and security knowledge. Those categories help explain how an application can retain its visible functionality while losing a constraint during development or omitting it entirely.

Random sampling within the selected deployed set does not make that set representative of all software. Discovery and filtering determine which projects can enter the sample, and the study remains a preprint using its own auditing workflow. Its 90% result belongs to those 200 applications; it is neither a probability for an arbitrary vibe-coded app nor an observed attack rate.

Model choice changes the attack surface, but it does not close it

Tenzai's September 30, 2026 report by Eran Machlev uses Base44 to isolate a different variable. The builder and the three application specifications stayed constant while the underlying model changed across Base1, Opus 5, DeepSeek v4 Flash, GLM 5.3 Flash and GPT-5.6 Sol.

The Base44 experiment report records 254 vulnerabilities across the 15 builds. Base1 was the only tested model with no high or critical findings, while each of the other four models produced at least one high or critical flaw allowing unauthenticated access to sensitive data.

The vulnerability classes also moved. Opus 5 and GPT-5.6 Sol had no high or critical injection findings in the experiment, while DeepSeek v4 Flash and GLM 5.3 Flash produced high-severity NoSQL injection findings. Base1 had lower-severity injection issues.

This is useful evidence that a model swap is a security-relevant change to an app-builder pipeline. It is not a durable league table. The result comes from one builder, three specifications, one testing system and the model versions available at that time. Tenzai also tested its own generated applications with its own security agent, and the reviewed evidence does not include an independent reproduction of the complete finding set.

The engineering implication is to treat changes to the generation setup as security-relevant: when a new model produces a materially changed application, rerun the security regression tests against that output. The study does not show that merely changing a model elsewhere changes an already deployed, unchanged application.

Security-oriented training provides a counterexample

SecureVibe, described in a September 2026 training paper, starts from functionally correct but insecure solutions and reports that the insecure agent was less than half as likely to perform effective planning and testing for hidden security risks. The authors then trained explicitly for security planning, coding and testing.

They report a 6.9-point improvement in security pass@1 on BaxBench and an 11.5-point improvement on unseen CWE categories in SUSVIBES, while also reporting functionality gains on SUSVIBES and SWE-bench Verified.

These are gains in percentage points, not universal reductions in vulnerability incidence. SecureVibe is a training result, not proof that a deployed builder is safe, and an improved pass rate still leaves failures. It supports a specific counterexample to fatalism: planning and testing behavior can improve when training targets it. That conclusion does not authorize removing the runtime controls whose behavior the tests are meant to check.

The security boundary is spread across five layers

The studies become more useful when the controls are mapped to the layer that actually holds authority.

Boundary Typical failure in the evidence What should be tested independently
Backend authorization Missing or overly broad RLS, broken object ownership, role checks skipped on some paths Anonymous, authenticated and cross-user requests against the backend or API, not only through the UI
Business invariants Negative quantities, negative prices, destructive actions allowed in invalid states Executable tests for ownership, state transitions, numeric bounds and role-specific actions
Network authority SSRF through server-side URL fetching Private-address blocking, redirects, resolver behavior and explicit destination policy
Deployment controls Missing CSRF protection, headers, login throttling or lockout Release gates that verify the expected controls exist and work at runtime
Change integration Security middleware or checks exist but a later route, protocol or feature does not inherit them PR-level security regression, route and protocol coverage, and tests that fail when a new path bypasses the intended control

This is where vibe coding changes the review problem. Generation compresses implementation time, but it does not compress the number of trust boundaries. A person can move from idea to deployed application before anyone has explicitly asked which component owns authorization, which values are legal, which network destinations are reachable, or which controls the deployment platform is expected to add.

DryRun's sequential measurements also locate the review problem in the change process. Security cannot be treated only as a final audit after the application has been generated, because sequential feature work can repeatedly reintroduce or expose control gaps. The relevant unit is not just the final repository. It is every change that creates a new authority path.

Field evidence suggests the problem is not confined to benchmarks

Escape's broader study, published on October 29, 2025, gives the controlled findings a deployment-facing counterpart. Its methodology report describes analysis of more than 5,600 publicly available vibe-coded applications across several platforms and reports more than 2,000 vulnerabilities, more than 400 exposed secrets and 175 PII exposures. The dataset was heavily weighted toward Lovable, with roughly 4,000+ Lovable applications in the initial platform coverage.

The methodology also documents limits that matter. Collection was a one-time snapshot, public and easily discoverable applications could be overrepresented, and platform coverage was uneven. Escape therefore provides evidence that exposed backends and secrets recur in deployed public apps, but it does not provide a clean platform-to-platform prevalence ranking.

The strongest overlap with the Lovable case is architectural. Escape describes finding public frontend artifacts that exposed routes, tokens or backend structure, then testing whether the server-side authorization actually held. Again, the browser-visible credential or route is not necessarily the bug. The decisive question is whether the backend accepts an unauthorized operation.

The VibeApps preprint reaches a related architectural point from a different corpus. This is corroboration of a failure class, not evidence that the studies found the same applications or the same underlying incidents. No deduplicated combined exposure count is established.

Builder, backend and investigator are different responsibilities

The names in these reports do not all identify the party holding the same kind of authority. Lovable and Base44 are application builders; Supabase is the backend provider in the Lovable example; the application operator decides what the deployed service should permit. An investigator tests those decisions, while a model provider supplies one component of the generation process. Confusing those roles turns an application finding into an unsupported claim about a whole vendor's infrastructure.

The research also has provenance that matters. Palmer's published correspondence credits Kody Low and identifies Palmer's Replit affiliation at the time. This should be visible alongside the methods and the vendor's response, rather than used either to dismiss the disclosure or to treat its interpretation as independent adjudication. Tenzai, Escape and DryRun likewise supplied the testing systems for their own studies.

Model and product identities require the same care. Anysphere and Cursor, Anthropic and Claude, and OpenAI and Codex are related names, not interchangeable units of measurement. The Base44 comparison also names models from DeepSeek and Zhipu AI. A result belongs to the tested product, model version, surrounding software and task, not automatically to every service operated by its provider.

For an application owner, the practical consequence is to assign each protection to the component that can enforce it and then test that component directly. A model can propose a rule, a platform can supply a default, and a scanner can find a gap; none of those roles alone proves that the final runtime enforces the intended policy.

What this evidence does not support

The 170 of 1,645 Lovable figure should not be presented as the current probability that a Lovable application is vulnerable. It was a March 2025 sample of discoverable public projects, not a census, and the platform and user behavior have changed since then.

The 90% result in the version 2 deployed-app audit belongs to that paper's sample and methodology. It must not be substituted for a universal prevalence estimate or combined with figures from another paper revision.

DryRun's rounded 87% describes 26 of 30 pull requests in its vendor-run experiment, not all AI-generated pull requests. Its issue count across scans is also not a count of attacked users.

The 69 findings from the cross-agent experiment and the 254 findings from the Base44 experiment should not be plotted as a time series. They came from different test designs.

The model comparison does not establish that one named model is generally secure or insecure. It shows that, inside one controlled builder experiment, model choice changed the resulting security profile.

SecureVibeBench's 23.8% correct-and-secure result is not a production compromise rate. It is the best result inside a C/C++ repository benchmark reconstructed from vulnerability-introducing scenarios.

The SecureVibe improvements do not show that a trained model can replace independent security controls. They show that targeted security planning and testing can move benchmark results.

These designs also do not establish a general causal comparison between AI-written and human-written software. A matched human baseline would be needed for that question. None of the benchmark counts is a victim count. The Lovable and Escape records are closer to deployed exposure, but the reviewed evidence still does not establish a comprehensive exploitation count or realized financial loss across the ecosystem.

Test the rejection, not the explanation

The useful test for a vibe-coded application is not whether the agent can explain its security choices, whether the interface hides a dangerous action, whether the selected model scored well in another benchmark, or whether a security middleware file exists somewhere in the repository. It is whether an independent mechanism rejects the unsafe behavior at the boundary that owns the decision.

For backend data, that means direct authorization tests and row-ownership rules. For business logic, it means executable invariants. For outbound requests, it means explicit network policy. For authentication, it means testing every route and protocol that can reach the protected action. For deployment controls, it means release gates. For sequential agentic development, it means security checks on each change rather than only at project completion. For model changes, it means rerunning the same security regression suite against the generated runtime.

A practical release gate therefore asks five questions:

  1. Can an unauthenticated or wrong-user request reach data or state that the UI would normally hide?
  2. Can a syntactically valid request violate a business invariant such as ownership, price, quantity or state transition?
  3. Can user-controlled input make the server contact a destination outside an explicit network policy?
  4. Are expected controls actually connected to every relevant route, protocol and deployment path rather than merely present in source files?
  5. Does the same adversarial regression suite still pass after a model, prompt, framework or generated feature changes?

Model quality and security-oriented training can improve the generated starting point, while platform defaults can reduce opportunities for mistakes. The release decision still needs evidence from the deployed enforcement path: the prohibited request is rejected, the legitimate request still works, and the result survives the next material change.

Research behind this