CVE-2026-42354: Sentry: Improper authentication on SAML SSO process allows user identity linking
Impact A critical vulnerability was discovered in the SAML SSO implementation of Sentry. It was reported to us via Sentry's private bug bounty program.
The vulnerability allows an attacker to take over any user account by using a malicious SAML Identity Provider and another organization on the same Sentry instance. The victim email address must be known in order to exploit this vulnerability.
Self-hosted users are only vulnerable if the following conditions are met: - They have more than one organization configured (SENTRYSINGLEORGANIZATION = False). - A malicious user has existing access and permissions to modify SSO settings for another organization in their multi-organization instance.
Patches - Sentry SaaS: The fix was deployed in April. No action is required. - Self-Hosted Sentry: If only a single organization is allowed (SENTRYSINGLEORGANIZATION = True), then no action is needed. Sentry recommends upgrading to version 26.4.1 or higher.
Workarounds User account-based two-factor authentication prevents an attacker from being able to complete authentication with a victim's user account. Organization administrators cannot do this on a user's behalf, this requires individual users to ensure 2FA has been enabled for their account.
Users can manage their two-factor authentication settings through Account Settings > Security page. For step-by-step details, please see the Sentry helpdesk article.
Resources
- https://github.com/getsentry/sentry/pull/113720
Please note that this is distinct vulnerability from the similar https://github.com/getsentry/sentry/security/advisories/GHSA-7pq6-v88g-wf3w from 2025.
Other sources
Sentry is an error tracking and performance monitoring tool. From version 21.12.0 to before version 26.4.1, a critical vulnerability was discovered in the SAML SSO implementation of Sentry. The vulnerability allows an attacker to take over any user account by using a malicious SAML Identity Provider and another organization on the same Sentry instance. The victim email address must be known in order to exploit this vulnerability. This issue has been patched in version 26.4.1.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/sentryto a version that resolves this vulnerability.Fixed in 26.4.1 - Upgrade
Upgrade
sentryto a version that resolves this vulnerability.Fixed in 26.4.1 - Configuration
Enable user account-based two-factor authentication (2FA) for all user accounts. Users can manage 2FA via Account Settings > Security.
Sentry account security 2FA (two-factor authentication) = enabled - Compensating control
If SENTRY_SINGLE_ORGANIZATION = True (only a single organization is allowed in a self-hosted instance), no action is needed; otherwise, mitigate by enabling 2FA for user accounts because the vulnerability requires multiple organizations on the same Sentry instance.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-42354?
CVE-2026-42354 is classified as a critical severity vulnerability.
How do I fix CVE-2026-42354?
To fix CVE-2026-42354, upgrade to Sentry version 26.4.1 or later.
What does CVE-2026-42354 affect?
CVE-2026-42354 affects Sentry versions between 21.12.0 and 26.4.0.
What type of vulnerability is CVE-2026-42354?
CVE-2026-42354 is a vulnerability in the SAML SSO implementation of Sentry.
What could an attacker do with CVE-2026-42354?
An attacker could take over any user account using a malicious SAML Identity Provider.