Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-87945 Overview
CVE-2026-87945 is an open redirect vulnerability affecting the Drupal SAML SSO - Service Provider contributed module. The flaw is classified under CWE-601, URL Redirection to Untrusted Site. Attackers can craft malicious links that abuse the module's redirect handling to send authenticated users to attacker-controlled destinations. The issue affects SAML SSO - Service Provider versions 0.0.0 through 3.2.0. Successful exploitation enables phishing campaigns and source-of-data spoofing against Drupal sites that rely on this Security Assertion Markup Language (SAML) integration for single sign-on.
Critical Impact
Attackers can redirect authenticated Drupal users to untrusted sites via the SAML SSO flow, enabling credential theft and brand impersonation.
Affected Products
- Drupal SAML SSO - Service Provider module versions 0.0.0 through 3.2.0
- Drupal sites using SAML SSO - Service Provider for identity federation
- Downstream Drupal distributions that bundle the affected module
Discovery Timeline
- 2026-10-22 - CVE-2026-87945 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-87945
Vulnerability Analysis
The Drupal SAML SSO - Service Provider module implements the service provider side of a SAML authentication exchange. During login and logout flows, the module processes redirect parameters that indicate where the user should be returned after assertion handling. The vulnerability stems from insufficient validation of these redirect targets. An attacker can supply an external URL that the module honors without verifying it against an allowlist of trusted hosts.
User interaction is required. The victim must click a crafted link that initiates the SAML flow. Because the initial domain belongs to the trusted Drupal site, the link appears legitimate to users and email security filters. After the SAML round-trip, the browser is redirected to the attacker-controlled destination.
Root Cause
The root cause is improper validation of redirect targets within the module's request handling logic. The code accepts user-supplied RelayState or equivalent return-path parameters and issues an HTTP redirect without confirming the destination is same-origin or on a configured trusted list. This pattern matches CWE-601.
Attack Vector
Exploitation requires no authentication and no special privileges. The attacker crafts a URL pointing at the vulnerable Drupal site's SAML endpoint and embeds an external redirect target. The victim clicks the link, completes or encounters the SAML flow, and the browser is sent to the malicious domain. The attacker can host a cloned login page to harvest credentials or deliver malware. Refer to the Drupal Security Advisory for endpoint-specific technical details.
Detection Methods for CVE-2026-87945
Indicators of Compromise
- Outbound HTTP 302 responses from Drupal SAML endpoints with Location headers pointing to external domains
- Access log entries containing SAML request parameters with URL-encoded external hostnames in return-path fields
- Spike in referral traffic from the Drupal site to unknown third-party domains following SSO initiation
Detection Strategies
- Review web server logs for requests to SAML SSO - Service Provider routes that include RelayState or ReturnTo parameters referencing non-allowlisted hosts
- Monitor Drupal watchdog logs for anomalous redirect activity tied to the module
- Deploy web application firewall rules that flag SAML endpoint requests containing fully qualified external URLs in query parameters
Monitoring Recommendations
- Alert on redirect responses from authentication endpoints whose destination host does not match the configured service provider domain
- Correlate user-click telemetry with downstream domain reputation data to identify phishing landing pages
- Track module version inventory across Drupal environments to confirm no instance remains at 3.2.0 or earlier
How to Mitigate CVE-2026-87945
Immediate Actions Required
- Identify all Drupal sites running SAML SSO - Service Provider and record installed versions
- Upgrade the module to a version later than 3.2.0 as published in the Drupal Security Advisory
- Audit historical access logs for suspicious redirect parameters targeting external hosts
- Notify end users of potential phishing lures that leverage the organization's Drupal domain
Patch Information
Drupal has published remediation guidance in advisory SA-CONTRIB-2026-143. Administrators should apply the fixed release of the SAML SSO - Service Provider module following standard Drupal module update procedures and clear site caches after deployment.
Workarounds
- Restrict access to the SAML SSO endpoints at the reverse proxy or web application firewall until the patched module is deployed
- Enforce a strict allowlist of return URLs at the proxy layer, rejecting any RelayState value that references an external host
- Educate users to inspect final destination URLs after completing SSO authentication flows
# Example NGINX rule blocking external RelayState values on SAML endpoints
location ~ ^/saml/ {
if ($arg_RelayState ~* "^https?://(?!your-drupal-site\.example\.com)") {
return 400;
}
proxy_pass http://drupal_upstream;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

