mongo/README.third_party.md

16 KiB

MongoDB Third Party Dependencies

MongoDB depends on third party libraries to implement some functionality. This document describes which libraries are depended upon, and how. It is maintained by and for humans, and so while it is a best effort attempt to describe the server's dependencies, it is subject to change as libraries are added or removed.

Server Vendored Libraries

This is the list of third party libraries vendored into the server codebase, and the upstream source where updates may be obtained. These sources are periodically consulted, and the existence of new versions is reflected in this list. A ticket is filed in Jira if a determination is made to upgrade a vendored library.

Whenever a vendored library is included in released binary artifacts, is not authored by MongoDB, and has a license which requires reproduction, a notice will be included in THIRD-PARTY-NOTICES.

Name License Vendored Version Emits persisted data Distributed in Release Binaries
Abseil Common Libraries (C++) Apache-2.0 20230802.1
Asio C++ Library BSL-1.0 1.12.2
benchmark Apache-2.0 v1.5.2
Boost C++ Libraries BSL-1.0 1.79.0
c-ares MIT 1.27.0
CRoaring Apache-2.0 OR MIT 2.1.2
Cyrus SASL BSD-Attribution-HPND-disclaimer 2.1.28
fmt MIT 7.1.3
folly Apache-2.0 v2025.04.21.00
gperftools BSD-3-Clause 2.9.1
gRPC (C++) Apache-2.0 1.59.5
immer BSL-1.0 0.8.0
Intel® Decimal Floating-Point Math Library BSD-3-Clause v2.0U1
International Components for Unicode C/C++ (ICU4C) Unicode-3.0 57.1
JSON Schema Store Apache-2.0 6847cfc3a17a04a7664474212db50c627e1e3408
JSON-Schema-Test-Suite MIT 728066f9c5c258ba3b1804a22a5b998f2ec77ec0
libmongocrypt Apache-2.0 1.8.4
librdkafka - The Apache Kafka C/C++ library BSD-2-Clause 2.0.2
LibTomCrypt Unlicense 1.18.2
libunwind MIT v1.8.1
linenoise BSD-2-Clause 6cdc775807e57b2c3fd64bd207814f8ee1fe35f3
MongoDB C Driver Apache-2.0 1.27.6
Mozilla Firefox ESR MPL-2.0 128.11.0esr
MurmurHash3 Public Domain a6bd3ce7be8ad147ea820a7cf6229a975c0c96bb
nlohmann/json MIT 3.10.5
PCRE2 - Perl-Compatible Regular Expressions BSD-3-Clause WITH PCRE2-exception 10.40
Protobuf BSD-3-Clause v4.25.0
pypi/asn1crypto MIT 1.5.1
pypi/concurrencytest GPL-3.0-or-later 0.1.2
pypi/discover BSD-3-Clause 0.4.0
pypi/extras MIT 0.0.3
pypi/ocspbuilder MIT 0.10.2
pypi/ocspresponder Apache-2.0 0.5.0
pypi/oscrypto MIT 1.3.0
pypi/python-subunit (Apache-2.0 OR BSD-3-Clause) 0.0.16
pypi/testscenarios BSD-3-Clause 0.4
pypi/testtools MIT 0.9.34
re2 BSD-3-Clause 2023-11-01
S2 Geometry Library Apache-2.0 c872048da5d1
SafeInt MIT 3.0.26
snappy BSD-3-Clause 1.1.10
Snowball Stemming Algorithms (libstemmer) BSD-3-Clause 7b264ffa0f767c579d052fd8142558dc8264d795
tcmalloc Apache-2.0 093ba93c1bd6dca03b0a8334f06d01b019244291
timelib MIT 2022.10
Unicode Character Database Unicode-DFS-2016 8.0.0
valgrind.h BSD-4-Clause 3.17.0
WiredTiger GPL-2.0-only OR GPL-3.0-only mongodb-8.0.12
yaml-cpp MIT 0.6.3
zlib Zlib 1.3.1
Zstandard (zstd) BSD-3-Clause OR GPL-2.0-only 1.5.5

WiredTiger Vendored Test Libraries

The following libraries are transitively included by WiredTiger, and are used by that component for testing. They don't appear in released binary artifacts.

Name
nlohmann/json@3.10.5
pypi/concurrencytest@0.1.2
pypi/discover@0.4.0
pypi/extras@0.0.3
pypi/python-subunit@0.0.16
pypi/testscenarios@0.4
pypi/testtools@0.9.34

Dynamically Linked Libraries

Sometimes MongoDB needs to load libraries provided and managed by the runtime environment. These libraries are not vendored into the MongoDB source directory, and are not compiled into release artifacts. Because they are provided by the runtime environment, the precise versions of these libraries cannot be known in advance. Further, these libraries may themselves load other libraries. The full set of transitively linked libraries will depend on the runtime environment, and cannot be outlined here. On Windows and Mac OS, other libraries and components provided by the Operating System may be loaded.

For Windows Enterprise, we may ship precompiled DLLs containing some of these libraries. Releases prepared in this fashion will include a copy of these libraries' license in a file named THIRD-PARTY-NOTICES.windows.

Name Enterprise Only Has Windows DLLs
Cyrus SASL Yes Yes
libldap Yes No
net-snmp Yes Yes
OpenSSL No Yes[3]
libcurl No No

Notes:

  1. ^ The majority of Valgrind is licensed under the GPL, with the exception of a single header file which is licensed under a BSD license. This BSD licensed header is the only file from Valgrind which is vendored and consumed by MongoDB.

  2. ^ WiredTiger is maintained by MongoDB in a separate repository. As a part of our development process, we periodically ingest the latest snapshot of that repository.

  3. ^ OpenSSL is only shipped as a dependency of the MongoDB tools written in Go. The MongoDB shell and server binaries use Windows' cryptography APIs.