Skip to main content
Vulnerability Database/CVE-2026-87947

CVE-2026-87947: Drupal SAML SSO Signature Spoof Vulnerability

CVE-2026-87947 is a cryptographic signature verification flaw in Drupal SAML SSO Service Provider that enables attackers to spoof signatures and bypass authentication. This article covers technical details, versions affected, security impact, and recommended mitigation strategies.

Published:

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-87947 Overview

CVE-2026-87947 is an improper verification of cryptographic signature vulnerability [CWE-347] in the Drupal SAML Single Sign-On (SSO) Service Provider contributed module. The flaw affects all versions from 0.0.0 through 3.2.0. An attacker can forge or spoof SAML signatures accepted by the Service Provider, undermining the integrity of the authentication exchange between the Identity Provider (IdP) and the Drupal site. Exploitation occurs over the network without authentication, though attack complexity is high. Successful exploitation can lead to limited confidentiality and integrity impact on affected Drupal deployments relying on SAML for federated login.

Critical Impact

Attackers who craft a spoofed SAML response can bypass signature verification and influence authentication decisions, potentially impersonating legitimate users within the Drupal application.

Affected Products

  • Drupal SAML SSO - Service Provider module versions 0.0.0 through 3.2.0
  • Drupal sites using the contributed SAML SSO Service Provider module for federated authentication
  • Downstream Drupal distributions bundling the vulnerable module version

Discovery Timeline

  • 2026-10-22 - CVE-2026-87947 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-87947

Vulnerability Analysis

The vulnerability resides in the SAML response processing path of the Drupal SAML SSO Service Provider module. The module fails to correctly verify the cryptographic signature attached to assertions returned by the Identity Provider. SAML relies on XML Digital Signatures to prove that an assertion originated from a trusted IdP and has not been altered in transit. When signature verification is incomplete or improperly scoped, an attacker can craft a SAML response containing forged assertions that the Service Provider still accepts as valid. This category of flaw is tracked under CWE-347: Improper Verification of Cryptographic Signature.

Root Cause

The root cause is incorrect validation logic in the SAML assertion handler of the Service Provider module. Verification routines may trust unsigned elements, accept unexpected signature references, or fail to bind the verified signature to the specific assertion being consumed. These weaknesses are consistent with the well-documented class of SAML signature wrapping and signature exclusion attacks against SAML implementations.

Attack Vector

The attack vector is network-based and requires no prior authentication, but attack complexity is high. An attacker must intercept or craft a SAML response and deliver it to the vulnerable Service Provider endpoint. If exploitation succeeds, the attacker influences the authenticated identity presented to Drupal, enabling user impersonation or session establishment under another identity. Confidentiality and integrity impacts are limited in scope, and availability is not affected.

No verified public exploit code is available for CVE-2026-87947. Technical details are described in the Drupal Security Advisory.

Detection Methods for CVE-2026-87947

Indicators of Compromise

  • SAML responses received by the Service Provider containing multiple <Signature> elements or signatures referencing unexpected XML identifiers
  • Successful Drupal login events for accounts whose corresponding IdP authentication logs show no matching session
  • SAML assertions with issuer, audience, or NotOnOrAfter values inconsistent with the configured trusted Identity Provider

Detection Strategies

  • Compare authentication events in Drupal with authentication records at the Identity Provider to identify sessions that lack a corresponding IdP transaction
  • Inspect raw SAML responses captured at the Service Provider for signature wrapping patterns, including signatures that cover different elements than the asserted subject
  • Alert on anomalous SAML assertion attributes such as unexpected NameID formats, role attributes, or group memberships

Monitoring Recommendations

  • Enable verbose SAML debugging on non-production environments to capture full assertion content for forensic review
  • Forward Drupal authentication logs and web server access logs covering the Assertion Consumer Service (ACS) URL to a centralized analytics platform
  • Monitor for sudden privilege changes or role assignments on Drupal accounts shortly after SAML login events

How to Mitigate CVE-2026-87947

Immediate Actions Required

  • Identify all Drupal sites running the SAML SSO Service Provider module and inventory installed versions
  • Upgrade the module to a release later than 3.2.0 that addresses the signature verification flaw, as referenced in the vendor advisory
  • Rotate SAML signing certificates and session secrets if there is any indication the vulnerability was exploited

Patch Information

Refer to the Drupal Security Advisory SA-CONTRIB-2026-145 for the fixed module version and upgrade instructions. Apply the vendor-provided update as the primary remediation. The advisory is the authoritative source for the patched version string.

Workarounds

  • Temporarily disable the SAML SSO Service Provider module and fall back to local Drupal authentication if an immediate upgrade is not feasible
  • Restrict access to the Assertion Consumer Service endpoint using network controls or a web application firewall rule that validates expected IdP origins
  • Enforce strict Identity Provider metadata configuration, including explicit certificate pinning and single allowed signing certificate, to narrow the attack surface

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.