diff --git a/contrib/src/opendht/SHA512SUMS b/contrib/src/opendht/SHA512SUMS
index 9fe904a67f01092a91c159b91f9f73dff96cff6d..3f9818c088fe27ba4a80c6d5b600852f4ccbb992 100644
--- a/contrib/src/opendht/SHA512SUMS
+++ b/contrib/src/opendht/SHA512SUMS
@@ -1 +1 @@
-991aeaf0036633b374014f2935e0f4264edc1b4fa71090e97b490c9e86893cac169112c025cf20eb9f790bc4de0d944a731dce6fd7591a236cc8c649746f7581  opendht-2.3.4.tar.gz
\ No newline at end of file
+e7db51f47c5b5254d97c39d67f9b7329c70680bfe5d9f189627332a5fccb3bdf12e420d507dfd5e0fd023109ed5f32d47ccb9c52d0d4bb69cf6178e7e665205a  opendht-2.4.0.tar.gz
\ No newline at end of file
diff --git a/contrib/src/opendht/package.json b/contrib/src/opendht/package.json
index 8b55c42775a874d6c3683083d9a3f3b091647db9..cc3815cd12eebad72552742ecf74996dabeedf53 100644
--- a/contrib/src/opendht/package.json
+++ b/contrib/src/opendht/package.json
@@ -1,6 +1,6 @@
 {
     "name": "opendht",
-    "version": "2.3.4",
+    "version": "2.4.0",
     "url": "https://github.com/savoirfairelinux/opendht/archive/__VERSION__.tar.gz",
     "deps": [
         "argon2",
diff --git a/contrib/src/opendht/rules.mak b/contrib/src/opendht/rules.mak
index 2b703b0f7d3c0f66fff00f95b18ddec35f49b78e..fa12c067cb76eede1f1d39b39e3c06d9b95b1caa 100644
--- a/contrib/src/opendht/rules.mak
+++ b/contrib/src/opendht/rules.mak
@@ -1,5 +1,5 @@
 # OPENDHT
-OPENDHT_VERSION := 2.3.4
+OPENDHT_VERSION := 2.4.0
 OPENDHT_URL := https://github.com/savoirfairelinux/opendht/archive/$(OPENDHT_VERSION).tar.gz
 
 PKGS += opendht