Vibe-coding with AI? Here’s what you need to consider
Vibe-coding opens up opportunities – but also legal risks. AI-generated code offers speed and innovation, yet it raises questions about liability, rights and data protection. In this article, Lindahl’s experts provide an overview of the key legal risks – and how you, as a business owner or developer, can act smartly and safely from the start.
Vibe-coding and AI: what’s the issue?
The development of AI-assisted code generation is booming, with various tools enabling the creation of digital solutions with minimal manual coding. But as the technology becomes more accessible, the legal challenges also increase:
Who is liable if something goes wrong?
Who actually owns the AI-generated code?
Could you be infringing copyright or GDPR without realising it?
Whether you run an established tech company or are building something new in a start-up environment, it’s crucial to address these issues early.
Four legal risk areas to watch
Who bears responsibility for security?
AI-generated code may contain vulnerabilities. It is therefore essential to analyse what guarantees exist – and what is missing – in supplier agreements. Make sure you regulate liability and measures in the event of operational disruptions or security breaches.
Do you really own the code you are using?
Copyright in AI-generated code remains a legal grey area. If the AI is trained on open-source or protected material, you may lose the right to use or sell your product. Clarify the applicable licensing terms – before you launch.
Unintentional intellectual property infringements
Many AI tools are trained on copyrighted code. The result? Your solution may, without your knowledge, include elements that infringe others’ rights. This can have serious legal and commercial consequences.
Does your solution comply with GDPR?
AI-generated applications may process personal data in ways that breach data protection law. Always analyse what data is used, how it is processed, and document this clearly.
Checklist: how to minimise the risks
Before launching an AI-generated solution using vibe-coding, make sure to:
Map your data: What is being used? Where is it sent?
Secure your contracts: Obtain clear guarantees on security and liability.
Review IP issues: Who owns what – and why?
Verify GDPR compliance: Follow data protection regulations.
Check your licences: Avoid being caught by copyleft requirements.
Our recommendation: analyse early
Technology moves quickly – the law rarely keeps pace. By seeking legal advice at an early stage, you can avoid future issues related to IP infringement, data protection or contracts.
Do you have questions about vibe-coding and AI-generated code? Get in touch with one of our experts for advice tailored to your business needs.

Do you want to know more? Contact:
Carousel items
-
Knowledge
9/22/2025
Vibe-coding with AI? Here’s what you need to consider
Vibe-coding opens up opportunities – but also legal risks. AI-generated code offers speed and innovation, yet it raises questions about liability, rights and data protection.
-
Cases and transactions
9/18/2025
Lindahl advises PriceShape on acquisition of Priceindx
Lindahl has acted as legal advisor to the Danish SaaS company PriceShape ApS and its owners, including the UK private equity fund Copilot Capital, in connection with the acquisition of Swedish Priceindx AB.
-
Portraits
8/19/2025
From demand letters to culture – Josefin on life as a summer trainee
Getting a real feel for what it's like to work as a lawyer was Josefin Mannevik's goal when she joined Lindahl's Gothenburg office as a summer trainee. A few weeks later, she has not only immersed herself in bankruptcy law, legal monitoring and si...
-
News articles
8/18/2025
Lindahl wins in the Supreme Court - bankruptcy cancelled for debt-free company
Lindahl has successfully represented ParkingSolar Nordic AB in a bankruptcy dispute that was decided in the company's favour by the Supreme Court. The case raises important questions about when presumption rules for insolvency can be applied.
-
Read more news and insights?