Short answer: Vibe coding creates technical debt when AI code ships without a human review. The studies show more copied code, less refactoring, more review issues and missing security basics, so the fix is a review step, not a ban.
Collins named "vibe coding" its Word of the Year 2025, and Andrej Karpathy's description of the style is to "forget that the code even exists". Shipping code nobody reads is where the debt starts. If you build with AI (see vibe coding in 2026), the numbers below show where debt shows up and how to check for it.
How vibe coding technical debt works: what the studies measured
AI code adds debt in three measurable ways: duplicated code, more defects per pull request, and insecure defaults. Each study below measured a different slice, so read the scope before you quote a figure.

| Finding | Figure | Scope | Who ran it |
|---|---|---|---|
| Copied lines rose | 8.3% to 12.3% | 211 million changed lines, 2020 to 2024 | GitClear |
| Refactoring fell | 25% to under 10% of changed lines | Same data, 2021 to 2024 | GitClear |
| More issues in AI pull requests | 1.7x | 470 open-source PRs (320 AI-co-authored) | CodeRabbit (vendor) |
| Insecure option chosen | 45% of the time | 80 security-sensitive tasks, more than 100 LLMs | Veracode (vendor) |
| Apps with weak database rules | 170 of 1,645 (10.3%) | Lovable "Launched" apps, March 2025 | Researcher Matt Palmer |
| More bugs with Copilot | 41% | Nearly 800 developers, 2024 | Uplevel (vendor) |
Duplication grows while refactoring falls
GitClear's 2025 analysis is the clearest signal of debt building up. Copy/pasted lines rose from 8.3% to 12.3% of changed lines, and refactoring-related lines sank from 25% in 2021 to less than 10% in 2024.
GitClear studied 211 million changed lines from repos owned by large companies, so this is enterprise code, not only vibe-coded apps. GitClear's own headline is that copy/paste now exceeds moved code for the first time in its data. In plain terms, teams are adding copies faster than they reorganize existing code.
Bug studies differ on how much AI code adds
AI code draws more review issues in most studies, but the size of the effect varies by who measured it. CodeRabbit's pull-request study found AI code creates 1.7x more problems across 470 open-source PRs. Logic and correctness issues were 75% more common, readability issues rose more than 3×, and security issues were up to 2.74× higher.
CodeRabbit sells AI code review, so treat these as vendor numbers. Uplevel, which also sells to engineering teams, found its Copilot group "introduced 41% more bugs" in a sample of nearly 800 developers. It also saw no significant change in efficiency. GitHub's own study, as reported in secondary coverage, found better code quality with Copilot. The honest summary is that results differ, and none of these studies covers pure vibe coding.
Security gaps are mostly missing basics
The security findings are less about clever attacks and more about missing defaults. In Veracode's 2025 report, models chose the insecure option 45 percent of the time. That figure covers 80 curated tasks with known security risk, not all AI code in production.
The Lovable case is the concrete one. A researcher's scan found 303 endpoints across 170 of 1,645 projects in Lovable's "Launched" gallery with inadequate row-level security (RLS) settings. The researcher also says Lovable's later scanner only checks that an RLS policy exists, not that it is correct. The CVE record notes that the supplier disputes responsibility, so treat this as the researcher's finding. If you are weighing builders, our Bolt.new vs Lovable comparison covers the trade-offs.
Try this review checklist on your AI code
Each check below maps to one finding above, so you can tell which risk it covers.

- Turn RLS on and test it. Log in as a second user and try to read the first user's rows (the Lovable scan).
- Scan for duplicates. Search for near-copies before you merge a new helper (GitClear's copied lines).
- Add tests for logic paths. Logic issues were 75% more common in CodeRabbit's AI pull requests; use AI test generation tools to cover them.
- Check dependencies and inputs. Insecure defaults are what Veracode measured; run a security scan on each pull request.
- Have a human read the change. AI code review tools help, but someone on the team should approve it.
Teams usually skip these checks for the same reasons:
- A passing test suite is taken as proof the code is safe.
- New utility functions get merged without a search for an existing one.
- A working demo is assumed to have production-ready database rules.
Which popular stats have no primary source?
Several widely shared numbers don't trace back to a study. We found no primary source for the often-quoted 48% duplication rise, the 60% refactoring drop, or the 1,400-app scan with 65% flawed and the 88% of 50 apps with RLS off. The same goes for startup "rebuild wave" counts and rescue-cost ranges, which appear only in trade blogs that name no origin. A rebuild wave may be real, but nobody has measured it in public yet.



