Yes. MPL-2.0 code can be used in commercial products, including closed-source ones, provided the MPL-covered files, and any modifications to them, are made available in source form when distributed.
Mozilla Public License 2.0and commercial use.
The Mozilla Public License 2.0 is a file-level copyleft licence. Files that contain MPL code must remain under the MPL and their source must be made available when distributed, but they can be combined with proprietary files in a larger work. It includes an express patent licence and a mechanism for compatibility with the GNU licences.
- Weak copyleft
- Licence family
- Yes
- OSI approved
- Medium
- M&A risk rating
- MPL-2.0
- SPDX identifier
Commercial and
SaaS use.
Running MPL-2.0 software as a hosted service does not trigger source disclosure, because the obligations attach to distribution of executable or source form.
Explicit. Each contributor grants a patent licence for its contributions, which terminates for anyone who brings a patent infringement claim alleging that a contributor version infringes.
Medium risk
Acquirers check whether the target modified MPL-covered files and, if so, whether those modified files were published as required for distributed products. They also confirm that proprietary code sits in separate files from MPL code. Risk is low for unmodified use in a hosted product.
What you must do
- Make the source code of MPL-covered files, including your modifications to them, available when you distribute them in executable form
- Keep MPL-covered files under the MPL and inform recipients how to obtain the source
- Retain copyright, patent, trademark and attribution notices in the source code form
- Do not remove or alter the licence notices in MPL-covered files
Commonly combined with
MITApache-2.0BSD-2-ClauseBSD-3-ClauseISCLGPL-2.1 or laterGPL-2.0 or laterAGPL-3.0
Well-known projects under MPL-2.0
FirefoxThunderbirdOpenTofu
Sources
- https://www.mozilla.org/en-US/MPL/2.0/
- https://www.mozilla.org/en-US/MPL/2.0/FAQ/
- https://opensource.org/license/mpl-2-0
- https://spdx.org/licenses/MPL-2.0.html
- https://choosealicense.com/licenses/mpl-2.0/
This page is a plain-English summary for technology diligence and is not legal advice. Licence obligations depend on how the code is used and distributed; confirm specific cases with counsel.
Frequently asked
questions.
Can I use MPL 2.0 code in a commercial SaaS product?
Yes. The MPL 2.0 permits commercial use, and hosting MPL-covered software on your servers does not require you to release source code. If you distribute MPL-covered files, including in a downloaded app, you must make the source of those files and your changes to them available.
Does MPL 2.0 require me to open source my whole application?
No. MPL 2.0 copyleft applies at the file level. Your own files that do not contain MPL-covered code can stay proprietary, even when combined with MPL files in a larger work.
Is MPL 2.0 compatible with the GPL?
MPL 2.0 lists the GPL 2.0 or later, LGPL 2.1 or later and AGPL 3.0 as Secondary Licenses, which allows MPL code to be combined with code under those licences, unless the original author marked the files as Incompatible With Secondary Licenses.
Open-source risk
in a target's code?
We scan the codebase, build the SBOM and flag licence obligations that matter for the deal. We respond within one business day with a proposed scope and fee.