diff --git a/composer.json b/composer.json
index 0aee2a3240d0887b2ccaec4bb733e22a02e35874..812c2460a9bd5d0c7f9e51c2f9906d9fe184e343 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,7 @@
 {
     "name": "simplesamlphp/simplesamlphp",
     "description": "A PHP implementation of a SAML 2.0 service provider and identity provider, also compatible with Shibboleth 1.3 and 2.0.",
+    "version": "1.16.1",
     "type": "project",
     "keywords": [ "saml2", "shibboleth","oauth","ws-federation","sp","idp" ],
     "homepage": "http://simplesamlphp.org",
@@ -36,11 +37,11 @@
         "ext-hash": "*",
         "ext-json": "*",
         "ext-mbstring": "*",
-        "simplesamlphp/saml2": "~3.2",
-        "robrichards/xmlseclibs": "dev-master#93f8c07976b36b6050ab341ab5850484dc897ce0 as 3.0.2",
+        "simplesamlphp/saml2": "^3.2",
+        "robrichards/xmlseclibs": "^3.0",
         "whitehat101/apr1-md5": "~1.0",
         "twig/twig": "~1.0",
-        "gettext/gettext": "^4.6",
+        "gettext/gettext": "^3.5",
         "jaimeperez/twig-configurable-i18n": "^1.2"
     },
     "require-dev": {
diff --git a/composer.lock b/composer.lock
index 495ce830fcd3b57925f436ee3a7a38c2b4194b60..84c257e088f0808f8c9faa45b2fe61dec502f6e2 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,33 +4,31 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "a7d27841fb528e220ac63d4fa2bbc21f",
+    "content-hash": "269c5bf97c6f645db6c61bee37261433",
     "packages": [
         {
             "name": "gettext/gettext",
-            "version": "v4.6.0",
+            "version": "v3.6.1",
             "source": {
                 "type": "git",
                 "url": "https://github.com/oscarotero/Gettext.git",
-                "reference": "cae84aff39a87e07bd6e5cddb5adb720a0ffa357"
+                "reference": "cd3be64443551e3a693117c4bccbe53e36282456"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/oscarotero/Gettext/zipball/cae84aff39a87e07bd6e5cddb5adb720a0ffa357",
-                "reference": "cae84aff39a87e07bd6e5cddb5adb720a0ffa357",
+                "url": "https://api.github.com/repos/oscarotero/Gettext/zipball/cd3be64443551e3a693117c4bccbe53e36282456",
+                "reference": "cd3be64443551e3a693117c4bccbe53e36282456",
                 "shasum": ""
             },
             "require": {
-                "gettext/languages": "^2.3",
-                "php": ">=5.4.0"
+                "gettext/languages": "2.*",
+                "php": ">=5.3.0"
             },
             "require-dev": {
                 "illuminate/view": "*",
-                "phpunit/phpunit": "^4.8|^5.7|^6.5",
-                "squizlabs/php_codesniffer": "^3.0",
                 "symfony/yaml": "~2",
                 "twig/extensions": "*",
-                "twig/twig": "^1.31|^2.0"
+                "twig/twig": "*"
             },
             "suggest": {
                 "illuminate/view": "Is necessary if you want to use the Blade extractor",
@@ -66,7 +64,7 @@
                 "po",
                 "translation"
             ],
-            "time": "2018-06-26T16:51:09+00:00"
+            "time": "2016-08-01T18:09:57+00:00"
         },
         {
             "name": "gettext/languages",
@@ -222,16 +220,16 @@
         },
         {
             "name": "robrichards/xmlseclibs",
-            "version": "dev-master",
+            "version": "3.0.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/robrichards/xmlseclibs.git",
-                "reference": "93f8c07976b36b6050ab341ab5850484dc897ce0"
+                "reference": "1f4de0c0d121922aafd8c62c2a9f5e528830cf38"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/robrichards/xmlseclibs/zipball/93f8c07976b36b6050ab341ab5850484dc897ce0",
-                "reference": "93f8c07976b36b6050ab341ab5850484dc897ce0",
+                "url": "https://api.github.com/repos/robrichards/xmlseclibs/zipball/1f4de0c0d121922aafd8c62c2a9f5e528830cf38",
+                "reference": "1f4de0c0d121922aafd8c62c2a9f5e528830cf38",
                 "shasum": ""
             },
             "require": {
@@ -256,20 +254,20 @@
                 "xml",
                 "xmldsig"
             ],
-            "time": "2018-03-23T11:10:08+00:00"
+            "time": "2018-09-27T13:24:13+00:00"
         },
         {
             "name": "simplesamlphp/saml2",
-            "version": "v3.2",
+            "version": "v3.2.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/simplesamlphp/saml2.git",
-                "reference": "43590bc9614c1df5bd7b1639088f7d904842892b"
+                "reference": "b3a040ec186f4a3749228b8c13642c5295fc451b"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/simplesamlphp/saml2/zipball/43590bc9614c1df5bd7b1639088f7d904842892b",
-                "reference": "43590bc9614c1df5bd7b1639088f7d904842892b",
+                "url": "https://api.github.com/repos/simplesamlphp/saml2/zipball/b3a040ec186f4a3749228b8c13642c5295fc451b",
+                "reference": "b3a040ec186f4a3749228b8c13642c5295fc451b",
                 "shasum": ""
             },
             "require": {
@@ -313,7 +311,7 @@
                 }
             ],
             "description": "SAML2 PHP library from SimpleSAMLphp",
-            "time": "2018-07-12T09:56:19+00:00"
+            "time": "2018-09-27T14:09:06+00:00"
         },
         {
             "name": "twig/extensions",
@@ -2671,18 +2669,9 @@
             "time": "2018-05-01T22:52:40+00:00"
         }
     ],
-    "aliases": [
-        {
-            "alias": "3.0.2",
-            "alias_normalized": "3.0.2.0",
-            "version": "9999999-dev",
-            "package": "robrichards/xmlseclibs"
-        }
-    ],
+    "aliases": [],
     "minimum-stability": "stable",
-    "stability-flags": {
-        "robrichards/xmlseclibs": 20
-    },
+    "stability-flags": [],
     "prefer-stable": false,
     "prefer-lowest": false,
     "platform": {