diff --git a/composer.json b/composer.json
index 51fe1fd4712e7fe601806369b81d935fb866f246..0878c64e2a58162305ca6f3166c48e7dc089c6bc 100644
--- a/composer.json
+++ b/composer.json
@@ -16,7 +16,7 @@
     "web-token/jwt-easy": "^2.2",
     "simplesamlphp/composer-module-installer": "~1.0",
     "ext-json": "*",
-    "mobiledetect/mobiledetectlib": "^2.8",
+    "mobiledetect/mobiledetectlib": "^3.0",
     "ext-curl": "*",
     "simplesamlphp/simplesamlphp": "^1.19",
     "simplesamlphp/saml2": "^4.1"
diff --git a/composer.lock b/composer.lock
index a57f28430882592b7b2cbd98dacedb375d486fc3..8937bcbb066c41404404afe8920078f0c6baac07 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "5dd59bd29b7fe8447fdd74b271750e6e",
+    "content-hash": "7bd10400146032cd29a058b825c0c381",
     "packages": [
         {
             "name": "brick/math",
@@ -298,31 +298,33 @@
         },
         {
             "name": "mobiledetect/mobiledetectlib",
-            "version": "2.8.39",
+            "version": "3.74.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/serbanghita/Mobile-Detect.git",
-                "reference": "0fd6753003fc870f6e229bae869cc1337c99bc45"
+                "reference": "812a4aa4605c63fc33d7fe32ca82f29275940b9d"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/serbanghita/Mobile-Detect/zipball/0fd6753003fc870f6e229bae869cc1337c99bc45",
-                "reference": "0fd6753003fc870f6e229bae869cc1337c99bc45",
+                "url": "https://api.github.com/repos/serbanghita/Mobile-Detect/zipball/812a4aa4605c63fc33d7fe32ca82f29275940b9d",
+                "reference": "812a4aa4605c63fc33d7fe32ca82f29275940b9d",
                 "shasum": ""
             },
             "require": {
-                "php": ">=5.0.0"
+                "php": ">=7.4"
             },
             "require-dev": {
-                "phpunit/phpunit": "~4.8.35||~5.7"
+                "friendsofphp/php-cs-fixer": "v2.19.3",
+                "phpunit/phpunit": "^7.0.0",
+                "squizlabs/php_codesniffer": "3.*"
             },
             "type": "library",
             "autoload": {
-                "psr-0": {
-                    "Detection": "namespaced/"
+                "psr-4": {
+                    "Detection\\": "src/"
                 },
                 "classmap": [
-                    "Mobile_Detect.php"
+                    "src/MobileDetect.php"
                 ]
             },
             "notification-url": "https://packagist.org/downloads/",
@@ -348,9 +350,9 @@
             ],
             "support": {
                 "issues": "https://github.com/serbanghita/Mobile-Detect/issues",
-                "source": "https://github.com/serbanghita/Mobile-Detect/tree/2.8.39"
+                "source": "https://github.com/serbanghita/Mobile-Detect/tree/3.74.0"
             },
-            "time": "2022-02-17T19:24:25+00:00"
+            "time": "2022-12-04T15:37:32+00:00"
         },
         {
             "name": "phpfastcache/riak-client",
@@ -5601,5 +5603,5 @@
     "platform-overrides": {
         "php": "7.4"
     },
-    "plugin-api-version": "2.2.0"
+    "plugin-api-version": "2.3.0"
 }