SA-CONTRIB-2026-347: Critical severity composer/drupal/samlauth vulnerability
This module allows users to authenticate against a SAML Identity Provider to log in to your Drupal site. The module can link a remote identity to an existing Drupal account with the same email address through a database lookup. Some database collations ignore accents, so two different addresses can possibly match. An attacker can then log in as another user, including an administrator. This vulnerability is mitigated by the fact that:
The account linking configuration option is off by default. Accounts are only vulnerable to takeover before they are logged into using the correctly matched SAML user.
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/samlauthto a version that resolves this vulnerability.Fixed in 8.x-3.16Fixed in 8.x-3.17
Event History
Frequently Asked Questions
Which sites are exposed to account takeover?
Sites are exposed only if the account-linking option is enabled. The risk applies where the database collation can treat differently accented email addresses as matching.
What does an attacker need to exploit this issue?
An attacker needs to authenticate through the SAML Identity Provider with a remote identity whose email address can match a target Drupal account under the database collation. Successful exploitation can allow login as the matched account, including an administrator account.
Are all accounts vulnerable once account linking is enabled?
No. An account is vulnerable only before it has been logged into using the correctly matched SAML user.
What can be done if the module cannot be updated immediately?
Disable the account-linking configuration option. It is off by default, and disabling it prevents the vulnerable lookup-based linking behavior.