Open Source, Hidden Costs: A Systematic Literature Review on OSS License Management

Boyuan Li, Chengwei Liu, Lingling Fan, Sen Chen, Zhenlin Zhang, Zheli Liu · OpenReview

TL;DR

This paper delivers the first systematic literature review (SLR) on open-source software (OSS) license management, analyzing 80 academic papers through the lens of real-world industrial practices. By mapping academic research to commercial Software Composition Analysis (SCA) workflows, the authors uncover critical gaps in how we identify, assess, and mitigate licensing risks—especially given the rise of custom licenses and generative AI code assistants.

What Problem Does This Paper Address?

Open-source software forms the backbone of modern applications, making up an estimated 70% to 90% of any given software solution. However, this massive reuse comes with a hidden catch: legal compliance. OSS components are governed by diverse licenses with distinct obligations (e.g., permissive vs. copyleft). Failing to respect these terms can lead to high-profile lawsuits, as seen in recent legal battles involving tech giants like Google, Microsoft, and TikTok.

Managing these risks is becoming increasingly difficult due to two major trends:

  1. License Proliferation: The explosion of customized, non-standard licenses tailored to specific corporate or ethical needs.
  2. Generative AI (CodeLLMs): Tools like GitHub Copilot generate code snippets that may implicitly copy restrictively licensed training data, creating a legal gray area.

While both academic researchers and commercial tool vendors have tackled these problems, their efforts have largely been siloed. This paper aims to bridge that gap by systematically reviewing the state-of-the-art in OSS license management.

Methods

The authors conducted a Systematic Literature Review (SLR) following well-established PRISMA guidelines.

  1. Paper Selection: They queried five major digital databases (ACM, IEEE, SpringerLink, ScienceDirect, and DBLP), initially retrieving 8,073 papers. Applying strict quality and relevance filters (including restricting results to peer-reviewed, CORE-ranked venues) and two rounds of snowball sampling, they narrowed the selection down to 80 primary studies spanning from 2000 to 2024.
  2. Taxonomy Alignment: To ensure their analysis reflected industry realities, the authors audited 12 leading commercial SCA tools (such as Black Duck, Snyk, and Sonatype). Guided by these tools' real-world capabilities, they structured the academic literature into a cohesive 12-category taxonomy divided into three core pillars: License Identification, License Risk Assessment, and License Risk Mitigation.
Fig. 2. The Overview of research works on OSS license management

Datasets

As a systematic literature review, this paper does not introduce a new machine learning dataset. Instead, it synthesizes the data sources and knowledge bases evaluated across the 80 reviewed studies. Key datasets and databases highlighted include:

  • License Databases: ScanCode LicenseDB (2000+ licenses), FOSSology Database (1700+), and the SPDX License List (606 licenses) used to benchmark license identification tools.
  • Code Repositories: Large-scale code ecosystems including GitHub, PyPI, Maven, NPM, RubyGems, and the Software Heritage project (which contains over 6.9 million unique license declarations) utilized by empirical studies to evaluate license compliance at scale.

Key Insights and Ideas

  • The Granularity Shift (Names to Terms): Prior to 2017, research focused almost entirely on identifying whole license names (e.g., "GPL-3.0"). Due to license customization, modern research has shifted toward term-level analysis—breaking licenses down into granular clauses, rights, and obligations to detect subtle conflicts.
  • The Academia-Industry Gap: Commercial SCA tools heavily rely on package-level metadata to identify licenses, meaning they frequently miss licenses embedded directly in code comments or modified snippets. Conversely, academic tools excel at fine-grained code clone and snippet-level tracing but lack commercial adoption.
  • Remediation Cautiousness: While academic researchers have proposed sophisticated, automated ways to fix license conflicts (such as using SMT solvers to automate library migration or rewriting license text), commercial tools remain highly conservative. Industry tools typically generate risk reports but leave the actual remediation to manual legal review.
  • The AI Blindspot: Generative AI models introduce severe compliance risks by mixing code fragments under restrictive licenses into permissive repositories. Current license management frameworks are fundamentally unequipped to handle the legal definitions of "derivative works" when applied to AI-generated code.

Key Results

  • Prevalence of Incompatibilities: Reviewed empirical studies show that roughly 31% of audited codebases contain non-standard or customized licenses.
  • Package Ecosystem Conflicts: Fine-grained, term-based analysis across major package managers (like NPM and PyPI) revealed that approximately 8% of projects suffer from license incompatibilities, primarily driven by sublicensing violations between GPL and permissive licenses.
  • Hidden Violations in Binaries: One reviewed tool (OSSPolice) analyzed 132,000 open-source binaries and discovered that over 40,000 applications potentially violated GPL/AGPL licensing terms due to static linking and code borrowing.

Limitations and Future Work

The authors acknowledge a few limitations inherent to their SLR methodology, such as potential subjectivity during manual paper screening and the risk of missing high-quality niche papers by strictly filtering for CORE-ranked publication venues.

They outline four major opportunities for future research:

  1. Standardized License Meta-Models: Developing unified frameworks that can capture complex license semantics, particularly for emerging open-source AI models (governing model weights, parameters, and activations).
  2. Measurable Legal Metrics: Creating quantifiable metrics for ambiguous legal concepts like "Derivative Works" to make automated compliance checking feasible.
  3. Contributor License Governance: Investigating the under-researched role and impact of Contributor License Agreements (CLAs) and Developer Certificates of Origin (DCOs) in open-source ecosystems.
  4. AI-Specific Provenance Tracking: Designing robust compliance tools capable of auditing training data provenance and verifying the legal status of LLM-generated code.

Summary updated

Abstract

Integrating third-party software components is a common practice in modern software development, offering significant advantages in terms of efficiency and innovation. However, this practice is fraught with risks related to software licensing. A lack of understanding may lead to disputes, which can pose serious legal and operational challenges. To these ends, both academia and industry have conducted various investigations and proposed solutions and tools to deal with these challenges. However, significant limitations still remain. Moreover, the rapid evolution of open-source software (OSS) licenses, as well as the rapidly incorporated generative software engineering techniques, such as large language models for code (CodeLLMs), are placing greater demands on the systematic management of software license risks. To unveil the severe challenges and explore possible future directions, we conduct the first systematic literature review (SLR) on 80 carefully selected OSS license-related papers, classifying existing research into three key categories, i.e., license identification, license risk assessment, and license risk mitigation. Based on these, we discuss challenges in existing solutions, conclude the opportunities to shed light on future research directions and offer practical recommendations for practitioners. We hope this thorough review will help bridge the gaps between academia and industry and accelerate the ecosystem-wide governance of legitimate software risks within the software engineering community.
BibTeX
@article{li2025open,
  author = {Boyuan Li and Chengwei Liu and Lingling Fan and Sen Chen and Zhenlin Zhang and Zheli Liu},
  title = {{Open Source, Hidden Costs: A Systematic Literature Review on OSS License Management}},
  journal = {IEEE Trans. Software eng},
  year = {2025},
  doi = {10.1109/tse.2025.3586411},
}
Figure