Software & B2B

Open source licences: what you may do with other people's code

Much of your software consists of code you did not write. That is normal and good. But every one of these libraries comes with a licence, and some set conditions.

Airnite Editorial Team22 November 2026 · 3 min
Published
Reading time
3 min
Author
Airnite Editorial Team

In short

  • Open source software may be used, changed and passed on, but only under the conditions of its licence.
  • Permissive licences such as MIT or Apache 2.0 mainly require notices; copyleft licences such as the GPL require source code when distributing.
  • A bill of materials with SPDX identifiers shows which licences are in your own product.

What it is about

Modern software consists largely of open source components: libraries for databases, encryption, image processing, user interfaces. That saves time and is often more secure than writing everything yourself. But free does not mean unconditional. Every component is under a licence that defines what you may do with it and which duties you take on.

For companies that sell software, build it into devices or provide it to customers as a service, this is not a formality. Violating a licence risks injunctions and, in the worst case, an obligation to disclose your own source code.

How it works

The Open Source Initiative keeps a list of recognised open source licences. Roughly, there are two families. Permissive licences such as MIT, BSD or Apache 2.0 allow almost any use, including in closed software. They mainly require that copyright notice and licence text are included; Apache 2.0 also deals with patent rights.

Copyleft licences such as the GNU General Public License require something else: anyone who distributes a program that contains or builds on GPL code must also distribute it under the GPL and make the source code available. The AGPL extends this to software provided to users only over a network. To make licences machine-readable there are SPDX identifiers, such as "Apache-2.0" or "GPL-3.0-only". The REUSE project of the Free Software Foundation Europe shows how to write them into every file.

Where it goes wrong

The most common mistake is ignorance. Developers include a library because it works, and nobody looks at the licence. Through dependencies of dependencies, hundreds of components end up in the product.

Second, the notices are missing. Even permissive licences require licence texts to be shipped, and precisely that often does not happen with devices or apps. Third, the contract with the service provider does not say who is answerable for licence compliance.

How to proceed

For every version of your software, keep a bill of materials of all components with SPDX licence identifiers. Decide which licences are allowed without asking, and have everything else assessed before inclusion. Ship licence texts and notices, for example in a NOTICE file or a "Licences" menu item. Specify in the development contract that the contractor hands over a licence list.

Read more: Software supply chain and SBOM: knowing what is inside your software, Commissioning a software project properly: requirements, acceptance, source code and Secure software development: what the NIST SSDF requires.

How Airnite helps

Airnite delivers a bill of materials with licences for every piece of software, checks existing products for critical components and sets up automatic licence checks in your development. For the legal assessment of individual licence questions, please consult a legal adviser.

Checklist

Sources

Every fact in this article is based on the following publications. Primary sources are marked.

  1. Open Source Initiative (OSI)LicensesStandardPrimary source
  2. Free Software FoundationGNU General Public License v3.0StandardPrimary source
  3. SPDX (Linux Foundation)SPDX License ListStandardPrimary source
  4. Free Software Foundation EuropeREUSE – Make licensing easy for everyoneStandard

Not a substitute for legal advice. General information, not an assessment of your individual case.

Matching services

Read on

Current incidents and warnings are covered in the Zero Day magazine. Go to the magazine

Want to put this into practice in your company?

We assess your situation and tell you clearly what to do. For businesses, in confidence.

Talk to an expert now