---
id: "CVE-2026-42354"
page: "https://infrastack.ai/live/CVE-2026-42354"
kind: "vulnerability"
aliases: ["CVE-2026-42354", "GHSA-rcmw-7mc7-3rj7"]
title: "Sentry's improper authentication on SAML SSO process allows user identity linking"
severity: "critical"
cvss: 9.8
epss: 0.00623
exploited: false
status: "open"
category: "package"
products: [{"name": "sentry", "fixed": ["26.4.1"], "affected": ">= 21.12.0, < 26.4.1", "ecosystem": "pypi"}, {"name": "sentry", "fixed": ["26.4.1"], "affected": ">= 21.12.0, < 26.4.1", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-290", "multi-organization", "package", "saml-sso", "self-hosted", "sentry"]
not_affected_if: ["managed-hosting", "single-organization", "sso-not-configured"]
published_at: "2026-04-30T20:44:24+00:00"
first_seen_at: "2026-11-16T16:23:45+00:00"
updated_at: "2026-11-16T16:38:06+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-rcmw-7mc7-3rj7", "first_seen_at": "2026-11-16T16:23:45+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42354", "first_seen_at": "2026-11-16T16:38:06+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00623, "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-42354"}]
---

# Sentry's improper authentication on SAML SSO process allows user identity linking

Link for people: https://infrastack.ai/live/CVE-2026-42354 (this .md is for agents)

Sentry's SAML SSO code links a user identity without proper authentication when multiple organizations share one instance. An attacker using a malicious SAML identity provider can take over any user account whose email address they know.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:sentry affected >= 21.12.0, < 26.4.1 fixed 26.4.1
- vendor:sentry affected >= 21.12.0, < 26.4.1 fixed 26.4.1

## How to check

- Check the installed version with `pip show sentry` for self-hosted installs.
- Check whether `SENTRY_SINGLE_ORGANIZATION` is set to `False` in the self-hosted configuration; only multi-organization instances are exposed.
- Check whether any user can modify SSO settings for another organization on the instance.

## Fix

- Self-hosted Sentry: upgrade to `26.4.1` or higher.
- Sentry SaaS: fix already deployed; no action required.

## Timeline

- 2026-11-16T16:23:45+00:00 ghsa https://github.com/advisories/GHSA-rcmw-7mc7-3rj7
- 2026-11-16T16:38:06+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-42354

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/getsentry/sentry/security-advisories/GHSA-rcmw-7mc7-3rj7
- [advisory] Maintainer's advisory: github.com https://github.com/getsentry/sentry/security/advisories/GHSA-rcmw-7mc7-3rj7
- [fix] Patch: github.com https://github.com/getsentry/sentry/pull/113720
- [fix] Patch: github.com https://github.com/getsentry/sentry/commit/0c67558ae7fe08738912d4c5233b53ead048da3b
- [fix] Release: github.com https://github.com/getsentry/sentry/releases/tag/26.4.1

## From the sources

### 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 (SENTRY_SINGLE_ORGANIZATION = False).
- A malicious user has existing access and permissions to modify SSO settings for another organization in their multi-organization instance. 

### Patches
- [Sentry SaaS](https://sentry.io/): The fix was deployed in April. No action is required.
- [Self-Hosted Sentry](https://github.com/getsentry/self-hosted): If only a single organization is allowed (SENTRY_SINGLE_ORGANIZATION = 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](https://sentry.io/settings/account/security/) page. For step-by-step details, please see the Sentry [helpdesk article](https://sentry.zendesk.com/hc/en-us/articles/46773315774235-How-do-I-enable-two-factor-authentication-2FA-on-my-Sentry-account).

### 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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
