CVE-2025-65954: SimpleSAMLphp casserver Open Redirect Vulnerability
MODERATECVE-2025-65954 is a MODERATE (CVSS 4.7) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting SimpleSAMLphp casserver libraries in the Packagist ecosystem. The issue involves open redirect in logout. Remediation is available by upgrading affected packages to version 7.0.0, 6.3.1.
CVE-2025-65954 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N).
How to Fix CVE-2025-65954
To remediate this vulnerability, upgrade all affected SimpleSAMLphp casserver dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade simplesamlphp/simplesamlphp-module-casserver to 7.0.0
Upgrade simplesamlphp/simplesamlphp-module-casserver to 6.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for simplesamlphp/simplesamlphp-module-casserver
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-65954, inspect your project dependencies for SimpleSAMLphp casserver:
inspect dependencies for simplesamlphp/simplesamlphp-module-casserver
Analyze the terminal output to locate any version of SimpleSAMLphp casserver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In SimpleSAMLphp casserver, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-65954 Affected SimpleSAMLphp casserver Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
simplesamlphp/simplesamlphp-module-casserver
|
Packagist |
≥ 7.0.0-rc1
< 7.0.0
|
7.0.0
|
|
simplesamlphp/simplesamlphp-module-casserver
|
Packagist |
< 6.3.1
|
6.3.1
|
References
Frequently Asked Questions
What is CVE-2025-65954?
Which SimpleSAMLphp casserver versions are affected?
What version fixes CVE-2025-65954?
Is simplesamlphp/simplesamlphp-module-casserver affected?
What is the CVSS score of CVE-2025-65954?
What CWE is associated with CVE-2025-65954?
How can I check Packagist dependencies for CVE-2025-65954?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cvrm-5hp6-h523",
"modified" : "2026-05-19T16:08:50Z",
"published" : "2026-05-15T16:21:13Z",
"aliases" : [ "CVE-2025-65954" ],
"summary" : "SimpleSAMLphp casserver: Open Redirect in logout",
"details" : "### Summary\n\nThe logout endpoint accepts a `url` query parameter to redirect to. casserver treats that url as trusted, and either (depending on configuration) redirects the browser there, or shows a \"you've been logged out\" page with a link to continue to that url.\n\nThere are a number of other things broken with logout in 7 (cas v3 uses a different query parameters, etc)\n\n### Details\n\nhttps://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104\n\nPrevious module checked the url against the valid service urls.\n\n### PoC\n\nThe docker instructions from the README.md run an image with a vulnerable config. \n\nAccessing https://localhost/cas/logout?url=https://google.com will redirect to Google\n\n### Impact\n\nImpacted configs have\n\n```php\n'enable_logout' => true,\n```\n\nand are most impacted if they also have\n\n```\n'skip_logout_page' -> true,\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "simplesamlphp/simplesamlphp-module-casserver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0-rc1"
}, {
"fixed" : "7.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 7.0.0-rc3"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "simplesamlphp/simplesamlphp-module-casserver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/security/advisories/GHSA-cvrm-5hp6-h523"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65954"
}, {
"type" : "WEB",
"url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/0462f50f00b3bb300d83067d11b74146a57bb8e0"
}, {
"type" : "WEB",
"url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/commit/fb6c6f1c7b9e757c93c5c306e1d36405e64f6dc5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver"
}, {
"type" : "WEB",
"url" : "https://github.com/simplesamlphp/simplesamlphp-module-casserver/blob/21418f7efbea8c4f078fd4a7d1b9eacf94dd4941/src/Controller/LogoutController.php#L104"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-15T16:21:13Z",
"nvd_published_at" : "2026-05-18T20:16:36Z"
}
}