# CVE-2025-65954: SimpleSAMLphp-casserver open redirect in logout endpoint

Source: https://junglewise.ai/threats/cve-2025-65954-simplesamlphp-casserver-open-redirect-in-logout-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-18. Updated: 2026-05-19  
License: CC BY 4.0 with a link back

CVE-2025-65954 · Severity: medium · CVSS 4.7 · Published 2026-05-18

A vulnerability in the SimpleSAMLphp CAS server module allows attackers to redirect users to malicious websites. This occurs during the logout process when the system incorrectly trusts a web address provided in the logout request. Attackers can use this to create convincing phishing links that appear to come from a trusted corporate login portal, potentially leading to credential theft or further social engineering attacks.

Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist), [Simplesamlphp](https://junglewise.ai/threats/vendors/simplesamlphp).

## Quick answers

**Is CVE-2025-65954 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-65954 being exploited in the wild.

**How severe is CVE-2025-65954?** Medium severity, with a CVSS score of 4.7, published 18 May 2026.

**Which products and versions are affected?** simplesamlphp/simplesamlphp-module-casserver (Packagist) ECOSYSTEM:introduced=7.0.0-rc1,fixed=7.0.0; Simplesamlphp-Module-Casserver < 6.3.1, < 7.0.0.

**Is there a fix for CVE-2025-65954?** Yes. simplesamlphp/simplesamlphp-module-casserver (Packagist): upgrade to 7.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-65954 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-65954?** Check whether you run simplesamlphp/simplesamlphp-module-casserver (Packagist), Simplesamlphp CAS Server Module or Simplesamlphp-Module-Casserver at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- simplesamlphp/simplesamlphp-module-casserver (Packagist): upgrade to 7.0.0 or later

  ```sh
  composer require simplesamlphp/simplesamlphp-module-casserver:^7.0.0
  ```


## Technical details

An open redirect vulnerability (CWE-601) exists in the LogoutController of the SimpleSAMLphp casserver module. The logout endpoint accepts a 'url' query parameter and fails to validate it against a list of trusted service URLs before performing a redirection. This can be exploited by a remote attacker who crafts a malicious link; when a user clicks the link, they are redirected to an arbitrary external site. The impact is highest when 'enable_logout' and 'skip_logout_page' are both set to true in the module configuration. The issue is fixed in versions 6.3.1 and 7.0.0.

## Affected products

- SimpleSAMLphp simplesamlphp-module-casserver >= 7.0.0-rc1, < 7.0.0-rc3; < 6.3.1

## Identifiers

- CVE-2025-65954
- GHSA-cvrm-5hp6-h523

## Timeline

- 2025-05-14: disclosed
- 2026-05-15: advisory: GitHub Advisory published

## References

- [https://api.github.com/users/pradtke](https://api.github.com/users/pradtke)
- [https://github.com/pradtke](https://github.com/pradtke)
- [https://api.github.com/users/pradtke/gists%7B/gist_id%7D](https://api.github.com/users/pradtke/gists%7B/gist_id%7D)
- [https://api.github.com/users/pradtke/repos](https://api.github.com/users/pradtke/repos)
- [https://avatars.githubusercontent.com/u/932934?v=4](https://avatars.githubusercontent.com/u/932934?v=4)
- [https://api.github.com/users/pradtke/events%7B/privacy%7D](https://api.github.com/users/pradtke/events%7B/privacy%7D)

## Related threats

- [SimpleSAMLphp-casserver path traversal in FileSystemTicketStore](https://junglewise.ai/threats/cve-2026-46491-simplesamlphp-casserver-path-traversal-in-filesystemticketstore)
