Community and resources · Insights

Vibe coding and accountability: generating an application is not the same as being answerable for it.

AI lets anyone generate an application that works in a demo. That does not mean anyone is able to put it into production with customers' personal data, confidential information or business-critical processes, or to take charge of its life cycle: permissions, security updates, backup and restore, incidents, breaches and service continuity.

Legal obligations still apply. In Spain and the EU, saying "the AI did it" or "I am not an engineer" does not, by itself, remove the liability of whoever commissions, develops or puts the software into use.

It is not just us saying it: the European Data Protection Supervisor (EDPS) warns about it in its TechSonar 2025-2026 analysis of coding assistants, and research on the security and maintainability of AI-generated code confirms it.

Common mistakes

Design decisions that compromise compliance

Hiding a button without checking permissions on the server

A user reaches other customers' data just by changing a URL or a request.

Collecting ID numbers, dates of birth or health data "just in case"

Excessive data collection, contrary to the data minimisation required by the GDPR.

Leaving files behind public links

Personal or confidential documents exposed to anyone who has, guesses or finds the link.

Keys and credentials in browser code

Anyone can read them and use your services, your database or your AI account at your expense.

Pasting real customer data into the AI tool

Processing by an external provider that must be assessed and covered by an appropriate contract.

No plan for deletion, restore or updates

Inability to honour data subject rights, recover from an incident or keep the system secure over time.

Plugging in third-party cloud storage, databases or chatbots without assessing them

Data ends up spread across processors nobody has identified: users cannot be informed and their rights cannot be honoured.

Accepting the code and libraries the assistant suggests without reviewing them

SQL injection, improper input validation, insecure authentication or dependencies with unpatched vulnerabilities.

An application working in a demo does not prove it is secure.

Evidence

What the data says

~50%

of working backends can be exploited

Across 392 backend generation tasks, the best model tested got the functionality right in only 62% of cases. And, on average, real exploits succeeded against around half of the programs that did work.

Vero et al., BaxBench, ICML 2025

56%

security pass rate, unchanged in four years

More than 100 models tested: the volume of generated code has exploded, but the failure rate has not dropped. The best 2026 model still fails nearly 1 in 3 tasks, and code-specialised models are no more secure than general-purpose ones.

Veracode, 2026 GenAI Code Security Report

+81%

duplicated code blocks since 2023

Refactoring has fallen from 21% of changed lines in 2022 to 3.8% in 2026, and maintenance of code older than a year by 74%. Code ships sooner; the bill arrives when it has to be maintained.

GitClear, The Maintainability Gap, 2026

European Data Protection Supervisor

What the EDPS warns

The EDPS points out that democratising software development has unexpected consequences for data protection: non-experts may disperse the processing of personal data across third-party platforms and services without knowing it, and may not even realise they are processing personal data. It also warns of a proliferation of digital services lacking adequate controls or compliance measures, multiplying the risk of data breaches.

Its practical conclusion: human oversight remains essential, particularly with sensitive data or critical infrastructure, and organisations should review and validate code, train the people using these tools and allow time to debug the generated output before deployment.

"While coding assistants may reduce the effort required to develop applications, they do not replace the need for accountability, which remains the provider's responsibility."

Legal framework

Who is liable and why

The GDPR requires design, not just a notice

Article 25 requires data protection by design and by default; Article 32, security appropriate to the risk. It affects which data is collected, who can access it, how long it is kept and how the system is protected and recovered.

Absolute security is not required, but justified and verifiable measures are. And when a breach happens, you must be able to detect it and notify it on time.

Who is liable?

It depends on the actual roles, not on the labels used in the contract:

  • The company that decides what the data is used for is usually the data controller. Outsourcing the development does not remove its obligations.
  • Whoever hosts, maintains or accesses the data on the client's behalf may be a data processor, with obligations of its own.
  • Whoever only delivers code may still be liable for the development under the contract and civil law.

Civil liability

A program can delete information, miscalculate amounts or bring a business to a halt without leaking a single piece of personal data. The Spanish Civil Code provides for compensation for breach of contract, including negligence (art. 1101), and for damage caused to third parties (art. 1902).

Holding a degree is not the criterion for assigning liability. But taking on a project without the ability to assess its risks and releasing it without review may weigh in a finding of negligence.

In practice

How we apply it before delivery

  • Technical review proportional to risk: AI-generated code is reviewed like any other code, more strictly the more sensitive the data or the process, with time set aside for it in the schedule.
  • Third-party services identified: every external platform that processes data is assessed and documented, with a data processing agreement where applicable.
  • Permission and data isolation tests: we check on the server that each user only sees and changes what belongs to them.
  • Agreed life cycle: maintenance, updates, backups, incidents and data protection roles, defined in writing.
  • Evidence of the checks: what was reviewed is documented, not taken for granted.

AI reduces the effort of writing code; it does not replace the ability to verify it, nor does it shift the responsibility for putting it into use.

If you have already generated an application and want to put it into production with guarantees, our artificial intelligence applied to software page explains how we review it and what you can ask us for.

Contact

Informational content, not legal advice. Each case requires analysing the contract and the actual role of each party.

Contact

Fields marked with * are required.

If you prefer, call us: +34 910 884 356