The short answer
Copyleft code in a product rarely stops an acquisition. It changes three things: the price, the time it takes to close, and what the seller has to promise in the contract.
The reason is ownership. A buyer is paying for exclusive control of the software, and copyleft licences can require some of it to be shared with others on the same terms. How much depends on which licence it is, how the code is used, and how the product reaches customers.
Four families of licence
| Family | Examples | What it asks of you | How a buyer usually reacts |
|---|---|---|---|
| Permissive | MIT, BSD, Apache 2.0 | Keep the copyright and licence notices. Apache 2.0 also includes a patent grant. | Fine. Checks the notices are in place. |
| Weak copyleft | LGPL, MPL 2.0 | Share the changes you make to the component itself. Your own code that uses it stays yours if you meet the licence's conditions. | Usually fine. Checks how it is linked or modified. |
| Strong copyleft | GPL v2, GPL v3 | If you distribute a work based on the code, offer the source of that whole work under the same licence. | Investigates every use. |
| Network copyleft | AGPL v3 | The same as the GPL, and also applies when users interact with a modified version over a network, with no distribution at all. | The most scrutiny, above all for hosted products. |
Some newer "source-available" licences, such as the SSPL, the Business Source License and the Elastic License, are not open source in the usual sense. They carry their own restrictions, often on offering the software as a service, and need a separate review.
How copyleft becomes a deal problem
Three questions decide whether a GPL component matters.
- Do you distribute the product? GPL obligations attach when you give copies to someone else: an installable application, an on-premise version, firmware in a device, a mobile app. Software you only run on your own servers is not distributed.
- Is your code part of the same work? Building your product with a GPL tool, or running a GPL program beside it as a separate process, is generally different from combining GPL code into your own program. Where the line falls, for example when linking to a library, depends on the facts and is where lawyers disagree.
- Did you modify it? Changes to copyleft code must be shared once the obligation applies. Unmodified use is easier to defend and easier to replace.
The case buyers fear is strong copyleft code compiled into the core of a product that is shipped to customers. Complying would mean offering the product's source; not complying means using the code without a licence, which is copyright infringement.
The versions differ on what happens after a breach. GPL v3 lets a first-time violator keep the licence by fixing the problem within 30 days of being notified. GPL v2 has no such clause.
AGPL and hosted software
The AGPL exists to close the gap in the first question above. Under the GPL a company can modify software, run it as a hosted service and share nothing, because nothing is distributed. The AGPL adds one rule: if you modify the software and let users interact with it over a network, you must offer those users the source of your modified version.
In a review, two patterns are treated very differently:
- Lower risk: an unmodified AGPL database or tool running as its own service, which your product talks to over the network.
- Higher risk: AGPL code that has been modified, or built into your own application, in a product customers use over the internet.
Some large companies prohibit AGPL code as a matter of internal policy. Even where your legal position is sound, expect a buyer with that policy to ask for it to be removed.
What buyers do when they find it
The responses below run from mildest to most severe. A buyer often combines two or three.
| Response | What it means for the seller |
|---|---|
| Disclosure and a warranty | You list every open-source component and promise the list is complete and that you comply with each licence. A wrong list becomes a claim against you after closing. |
| Fix before closing | The deal waits while you replace or isolate the component. Closing moves by however long that takes. |
| Money held back | Part of the price sits in escrow until the fix is done, or until a set period passes without a claim. |
| Specific indemnity | You agree to cover the buyer's losses from this one issue, sometimes without the usual cap. |
| Price reduction | The buyer estimates the cost of the rewrite and the risk, and takes it off the price. |
| Walking away | Rare. It happens when the copyleft code is the core of the product and cannot be replaced in a reasonable time. |
How to find and fix it first
- Take inventory. List every component with its licence, including the dependencies of your dependencies. Package manifests are the start. Also look for code copied straight into the repository, which no manifest lists.
- Classify each copyleft finding using the three questions: is it distributed, is it part of your own work, was it modified.
- Choose a fix for each one: replace it with a permissively licensed alternative; isolate it, running it unmodified as a separate service; buy a commercial licence, which many copyleft projects sell for exactly this purpose; or comply, by publishing the source, where that is acceptable for the part in question.
- Stop it coming back. Check licences automatically on every change, so a new copyleft dependency is flagged in code review and not in diligence.
- Keep the record. The inventory, the decision on each finding and the dates are what you hand to a buyer.
Common misconceptions
- "We only use it internally, so it doesn't matter." Mostly true for the GPL. Not true for the AGPL once outside users reach it over a network, and not true the day you ship an on-premise version.
- "It's a dependency of a dependency, so it isn't ours." The licence applies to what you ship, however it got there.
- "We didn't change it." That helps, but it does not remove the obligation when you distribute a combined work.
- "Open source means free to use however we like." Every licence has conditions. Permissive ones are simply easy to meet.
- "There's no licence file, so it's public domain." No licence means all rights are reserved by the author.
- "Nobody enforces this." In a deal the enforcer is the buyer's lawyer, who needs no lawsuit to reduce the price.
Where Veridence fits
Veridence reads the licences a repository declares and looks up the licence of every pinned dependency, then reports each one under the GPL, AGPL or SSPL in a production dependency. On its paid plans it checks each pull request too, so a new copyleft component is caught when it is introduced.
See a sample report, or read how licences are classified. A free preview of one repository shows its risk and cost to fix.
This article is general information, not legal advice. Licence obligations depend on the facts and the jurisdiction. Before acting, speak to a lawyer who works with open-source licensing.