CodekeeperTransaction Services

InsightsOpen source and IP

AGPL compliance in a SaaS product: what it means and what to do

The GNU Affero General Public License (AGPL) v3 was written for software that is used over a network instead of being handed out as copies. For a company that sells software as a service (SaaS), it is the one widely used open-source license whose added obligation can apply without anything being distributed. An AGPL component in a hosted product is a common finding and usually a manageable one, and it is better resolved before a transaction than argued over during one.

6 min readUpdated Codekeeper Transaction Services

What the AGPL adds to the GPL

The ordinary GPL is triggered by distribution: its obligations apply when a copy of the software passes to someone else. A hosted service never hands over a copy of its back-end software, so a company can modify GPL software, run it for its customers and owe no source code to anyone. The background is in copyleft licenses explained for dealmakers.

AGPL v3 is GPL v3 with one further section. Under section 13, if you modify the program, your modified version must offer all users who interact with it remotely over a network the opportunity to receive its source code, at no charge.

Reading the trigger carefully

Section 13 has three elements, and each one is a question of fact about the target's product.

Is the component modified? The section addresses modified versions. Running an unmodified AGPL program is generally regarded as not triggering the offer of source.

What is "the program"? This is the hard part. Where a company runs AGPL server software as a separate service and its application talks to that service over a standard protocol, the two are usually analyzed as separate programs. Where an AGPL library is built into the application itself, the application and the library may be regarded as one work, a modified version of the library, and the application's own code may then fall within the source that has to be offered.

Who interacts with it? The obligation is owed to users who interact with the software over a network. Customers using the product through a browser or an interface plainly qualify. A tool that only staff use internally raises less concern, although the license does not define the boundary precisely.

SituationTypical assessment
Unmodified AGPL server software, run as a separate serviceLow concern: record the version and confirm it is unmodified
Modified AGPL server software that customers interact withSection 13 applies: the source of the modified version must be offered
AGPL library built into the hosted applicationHighest concern: the application may form part of the covered work

Views differ at the margins. Where the project's owner has published its own reading of the license, that reading matters, because the owner is the party who would enforce it.

How AGPL components enter a stack

Few teams choose the AGPL on purpose. It usually arrives by one of these routes.

  • Convenience. An engineer needs to generate documents or draw charts, finds a capable library, and adds it without reading the license.
  • Infrastructure. Storage servers, monitoring dashboards, databases and search tools are deployed as ready-made containers, and nobody records the license.
  • A license change upstream. A project adopted under a permissive license later moves to the AGPL. The next routine upgrade brings the new license with it, which is why the version matters as much as the name.
  • Community editions. A vendor offers a free edition under the AGPL and a paid edition under commercial terms, and the team assumes that free means unrestricted.
  • Transitive dependencies. A permissively licensed package depends on an AGPL one, which arrives unannounced. See dependency and supply-chain risk.

Some projects once offered under the AGPL have since moved to "source-available" licenses with broader conditions. Those are different documents and need their own reading.

Three options: comply, replace or license

Comply. Publish the source of the modified version and offer it to users, for example through a link in the interface. This works well when the modifications are small patches to an infrastructure component and reveal nothing of value. It is unattractive when the covered work would include the product's own logic.

Replace. Swap the component for a permissively licensed alternative. For a component the product is built around, that is a project, and it should be estimated as one. Staying on an old, permissively licensed version is a temporary measure at best, because that version usually stops receiving security fixes.

Buy a commercial license. Many AGPL projects are owned by a company that sells the same software under commercial terms for exactly this situation. Check whether the commercial license can be assigned and what it says about a change of control, since it becomes a contract the buyer inherits.

Re-architecting so that the component runs unmodified as a separate service is a fourth route. Whether the separation is sufficient is a judgment for counsel.

What a buyer will ask

A seller should expect these questions and have the evidence ready.

  1. Which AGPL components are present, and in which versions?
  2. Has each been modified? A comparison against the published release answers this.
  3. How does the application call each one: as a built-in library or as a separate service?
  4. Is there a commercial license, and is it current?
  5. If the company relies on compliance, where is the source offered?

Replacing a component deals with the future, and counsel should consider any exposure from the period before. A fix that cannot be completed before signing is usually dealt with through a condition, an indemnity or a holdback, as described in open-source license risk in M&A.

This article is general information, not legal advice. The AGPL is interpreted differently across jurisdictions and facts, and counsel should be consulted on any specific case.

How we approach it

Every level of our technical due diligence includes software composition analysis, license compliance, a full software bill of materials (SBOM) and an architecture map, so an AGPL component is reported with its version and its license obligations.

In the Analyst-Verified Report an in-house analyst verifies the finding, removes false positives and rates the risk in context. Remediation effort is given in engineer-months and as a cost band, and material issues are paired with a market-standard remedy. That is data-backed negotiation support, not advisory.

The seller responds beside the finding, on the record. If the seller replaces the component during the process, the delta scan picks up the change, the fix is verified by re-scan, and the report can be regenerated until closing. Fees are fixed and published on our pricing page. Our license review is analysis, not legal advice.

Questions we are asked

We use an AGPL database but have not changed it. Do we have to publish our code?

Generally not on that basis alone. Section 13 addresses modified versions, and an unmodified database reached over its normal protocol is usually treated as a separate program from the application. Confirm that it is unmodified and have counsel confirm the conclusion. Some acquirers and enterprise customers restrict AGPL software by policy in any case.

Does the AGPL apply to a tool we only use internally?

Generally it is of lower concern, because the network clause is aimed at users who interact with the software remotely. Check that the tool is not exposed to customers or partners in ways nobody intended.

Can an AGPL finding be fixed while the transaction is running?

Often, yes. In our engagements the seller records the fix beside the finding and the next scan verifies it, so both sides see the finding closed in the same report.

This article is general information for people working on software transactions. It is not legal, financial or insurance advice.

Dealmaking is your craft. The technology is ours.

Tell us about the transaction and its timetable. We will set out the scope we would advise, and what the first report would cover.