diff --git a/composer.json b/composer.json
index ef6a32abae03da9f329aba68f2fd34c414b74dfc..8beedd642b2b989299eacbe657c76fa5bd1b712c 100644
--- a/composer.json
+++ b/composer.json
@@ -12,7 +12,7 @@
   "require": {
     "simplesamlphp/composer-module-installer": "~1.0",
     "simplesamlphp/simplesamlphp": "~1.17",
-    "cesnet/simplesamlphp-module-perun": ">=8.0",
+    "cesnet/simplesamlphp-module-perun": "^8.0 || ^9.0",
     "ext-json": "*",
     "ext-curl": "*"
   },
diff --git a/composer.lock b/composer.lock
index 28bebba810b3dadef25116ae1849e0b73ecf00c5..a640c9a6c12c622748150cfdc8b96dbda3d6b45c 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": "27e1bbcbe9dfb3632691caa6dda5f2f6",
+    "content-hash": "e90193c9fdb51f3b5b0426f80bb55919",
     "packages": [
         {
             "name": "brick/math",