Safeguard
Compliance•

Which license should research software use, and what if it has none?

Code with no license is under exclusive copyright by default. A short guide to MIT versus GPLv3 for research code and the steps to add one.

Safeguard Security Team
3 min read

Research software should carry an explicit license. Without one, the code is under exclusive copyright by default and nobody else may safely copy, modify or distribute it. MIT is short and permissive. GPLv3 requires that distributed versions stay open source. This is general information, not legal advice.

What no license means

The Choose a License project states that when you make a creative work, which includes code, it is under exclusive copyright by default. Unless you include a license that says otherwise, nobody else can copy, distribute or modify the work without risk. Once others contribute, each becomes a copyright holder, so "nobody" starts to include you.

A public repository is not the same as an open license. GitHub's own archiving guidance tells you to include a license so readers know how they can reuse your work.

Two common choices

LicenseIn plain wordsConsider it when
MITShort, permissive, lets people do almost anything, including closed source versionsYou want maximum reuse and few conditions
GNU GPLv3Lets people do almost anything except distribute closed source versionsYou want improvements to stay open

Choose a License lists both with examples of projects that use them. There are many others, and some funders or institutions set their own policies, so check with your research office or technology transfer team before you pick.

Steps

  1. Check any funder, employer or institutional requirement first.
  2. Check the licenses of your dependencies. A strong copyleft dependency can constrain what you may choose. See do transitive dependency licenses matter.
  3. Add a LICENSE file at the repository root with the full text.
  4. State the license in your package metadata and in your CITATION.cff file context or README.
  5. If you depend on something with no license, ask its maintainers to add one, as Choose a License advises.

Why security teams care

License text decides who can redistribute your code, who can fix it and who can include it in a product. An unlicensed dependency in a research pipeline is an unknown, which belongs on the same risk list as an unmaintained one. See blank license field treat it as unknown.

Quick check

Is code on a public GitHub repository free to reuse?

Not without a license. By default the author holds exclusive copyright, so reuse is risky until a license says otherwise.

Can I change the license later?

Often you can for future releases, but contributors may hold copyright in their parts. Ask your institution or a lawyer before relicensing.

Safeguard's SBOM and dependency scanning can surface the licenses of your dependencies, and a free scan is available.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.