#11092·MISP

Bug: OIDC authentication broken since phpseclib upgrade to 4

Author: capileCreated Sep 4, 2026Updated Sep 23, 2026
Labelsneeds triage

Actual behavior

Authentication using recommended OIDC plugin fails due to a fatal PHP exception, caused by missing classes:

Error: Fatal Error (1): Trait "phpseclib3\Crypt\EC\Formats\Keys\Common" not found in [/var/www/MISP/app/Vendor/certmichelin/openid-connect-php/src/Jwks.php, line 211]
Error: [InternalErrorException] Internal Server Error
Request URL: /users/login?code=eUACp9tjeU_z2ky0HwvUbi4PKcFgOWg0y13fFBKg9BZee&state=05LvJPWfAUpYGjhOo1u2Ow
User SYSTEM (User #SYSTEM) @ SYSTEM

The required libraries installation as described here install the latest phpseclib/phpseclib (currently 4.0.1) breaking the code as stated above, because of the different PHP namespace.

As certmichelin/OpenID-Connect-PHP is kind of outdated and does not update very often, one possible solution is to update the documentation to install the latest v3 version of the required dependency:

bash
cd app
php composer.phar require certmichelin/openid-connect-php:1.3.0 phpseclib/phpseclib:3.0.57

The MISP/misp-docker is also broken due to this dependency mismatch.

As the code is within a dependency and the dependency is not easily updated (and does not provide bug reports), I cannot provide a patch or PR.

Expected behavior

Sign in using OIDC/OAuth2

Steps to reproduce

Deploy the latest version as recommended, or use the misp-docker image configured to use OIDC. Then sign in.

Version

2.5.45

Operating System

Debian (kubernetes using misp-docker image)

Operating System version

13.6

PHP version

8.4.24

Browser

Firefox, Chrome, Safari, Mobile...

Browser version

latest version

Relevant log output

bash
2026-09-02 12:26:23 Error: Fatal Error (1): Trait "phpseclib3\Crypt\EC\Formats\Keys\Common" not found in [/var/www/MISP/app/Vendor/certmichelin/openid-connect-php/src/Jwks.php, line 211]
2026-09-02 12:26:23 Error: [InternalErrorException] Internal Server Error
Request URL: /users/login?code=eUACp9tjeU_z2ky0HwvUbi4PKcFgOWg0y13fFBKg9BZee&state=05LvJPWfAUpYGjhOo1u2Ow
User SYSTEM (User #SYSTEM) @ SYSTEM
Error in: /var/www/MISP/app/Lib/cakephp/lib/Cake/Error/ErrorHandler.php, Line: 292
Stack Trace:
#0 /var/www/MISP/app/Lib/cakephp/lib/Cake/Error/ErrorHandler.php(243): ErrorHandler::handleFatalError()
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Core/App.php(970): ErrorHandler::handleError()
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Core/App.php(943): App::_checkFatalError()
#3 [internal function]: App::shutdown()
#4 {main}
2026-09-02 12:26:24 Warning: OIDC [187.61.90.149;403e2e] - Authorization code exchange failed (`invalid_grant`), most likely a replayed or expired code. Cancelling login.

Extra attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct