{"id":"CVE-2026-42354","kind":"vulnerability","aliases":["CVE-2026-42354","GHSA-rcmw-7mc7-3rj7"],"related":[],"title":"Sentry's improper authentication on SAML SSO process allows user identity linking","description":"### Impact\nA critical vulnerability was discovered in the SAML SSO implementation of Sentry. It was reported to us via Sentry's private bug bounty program.\n\nThe 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.\n\nSelf-hosted users are only vulnerable if the following conditions are met:\n- They have more than one organization configured (SENTRY_SINGLE_ORGANIZATION = False).\n- A malicious user has existing access and permissions to modify SSO settings for another organization in their multi-organization instance. \n\n### Patches\n- [Sentry SaaS](https://sentry.io/): The fix was deployed in April. No action is required.\n- [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.\n\n### Workarounds\nUser 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.\n\nUsers 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).\n\n### Resources\n\n- https://github.com/getsentry/sentry/pull/113720 \n\nPlease note that this is distinct vulnerability from the similar https://github.com/getsentry/sentry/security/advisories/GHSA-7pq6-v88g-wf3w from 2025.","summary":"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.","severity":"critical","cvss":9.8,"epss":0.00623,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Check the installed version with `pip show sentry` for self-hosted installs.\n- Check whether `SENTRY_SINGLE_ORGANIZATION` is set to `False` in the self-hosted configuration; only multi-organization instances are exposed.\n- 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.\n- Sentry SaaS: fix already deployed; no action required.","status":"open","published_at":"2026-04-30T20:44:24+00:00","first_seen_at":"2026-11-16T16:23:45+00:00","triaged_at":"2026-11-16T16:25:27+00:00","updated_at":"2026-11-16T16:38:06+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-11-16T16:25:27Z","model":"claude-haiku-5-5","output":{"fix":"- Self-hosted Sentry: upgrade to `26.4.1` or higher.\n- Sentry SaaS: fix already deployed; no action required.","reach":"internet","title":"Sentry: SAML SSO flaw lets an attacker take over user accounts","impact":"high","summary":"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.","audience":"businesses","category":"package","nicknames":[],"who_cares":["sentry","self-hosted","saml-sso","multi-organization"],"confidence":0.85,"fix_status":"available","needs_auth":"yes","worst_case":"attacker takes over any user account on the instance","analyst_note":"","how_to_check":"- Check the installed version with `pip show sentry` for self-hosted installs.\n- Check whether `SENTRY_SINGLE_ORGANIZATION` is set to `False` in the self-hosted configuration; only multi-organization instances are exposed.\n- Check whether any user can modify SSO settings for another organization on the instance.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["managed-hosting","single-organization","sso-not-configured"],"who_is_affected":"Self-hosted Sentry instances with more than one organization (SENTRY_SINGLE_ORGANIZATION = False) where a user can edit SSO settings for another organization are exposed. Single-organization self-hosted instances and Sentry SaaS need no action per the vendor. Enabling account-based two-factor authentication blocks the takeover path, but organization admins cannot enable it on a user's behalf.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000835,"input_tokens":5250,"output_tokens":620,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2026':14A,22A '-290':27B '-42354':15A,23A '/):':190C '/getsentry/self-hosted):':207C '/getsentry/sentry/pull/113720':314C '/getsentry/sentry/security/advisories/ghsa-7pq6-v88g-wf3w':327C '/hc/en-us/articles/46773315774235-how-do-i-enable-two-factor-authentication-2fa-on-my-sentry-account).':310C '/settings/account/security/)':294C '2025':329C '26.4.1':229C '2fa':272C '3rj7':20A '7mc7':19A 'abl':246C 'access':169C 'account':70B,111C,235C,255C,278C,289C 'account-bas':234C 'action':198C,221C 'address':73B,130C 'administr':257C 'allow':9A,103C,214C 'anoth':120C,177C 'april':196C 'articl':307C 'attack':58B,105C,243C 'authent':4A,50B,240C,249C,286C 'base':236C 'behalf':265C 'bounti':99C 'bug':98C 'cannot':258C 'code':43B 'complet':248C 'condit':150C 'configur':159C 'critic':78C 'cve':13A,21A 'cwe':26B 'deploy':194C 'detail':301C 'discov':81C 'distinct':320C 'email':72B,129C 'enabl':275C 'ensur':271C 'exist':168C 'exploit':137C 'factor':239C,285C 'fals':163C 'fix':192C 'follow':149C 'ghsa':17A 'ghsa-rcmw-7mc7-3rj7':16A 'github.com':206C,313C,326C 'github.com/getsentry/self-hosted):':205C 'github.com/getsentry/sentry/pull/113720':312C 'github.com/getsentry/sentry/security/advisories/ghsa-7pq6-v88g-wf3w':325C 'helpdesk':306C 'higher':231C 'host':37B,142C,203C 'ident':11A,47B,63B,117C 'impact':76C 'implement':86C 'improp':3A 'individu':268C 'instanc':56B,126C,184C 'know':75B 'known':133C 'link':12A,44B 'malici':61B,115C,165C 'manag':281C 'met':152C 'modifi':173C 'multi':29B,182C 'multi-organ':28B,181C 'multipl':52B 'must':131C 'need':223C 'note':316C 'one':55B,157C 'order':135C 'organ':30B,53B,121C,158C,162C,178C,183C,212C,217C,256C 'packag':31B 'page':295C 'patch':185C 'permiss':171C 'pleas':302C,315C 'prevent':241C 'privat':97C 'process':8A 'program':100C 'proper':49B 'provid':64B,118C 'rcmw':18A 'recommend':225C 'report':91C 'requir':200C,267C 'resourc':311C 'saa':187C 'saml':6A,33B,41B,62B,84C,116C 'saml-sso':32B 'secur':291C 'see':303C 'self':36B,141C,202C 'self-host':35B,140C,201C 'sentri':1A,38B,39B,88C,95C,125C,160C,186C,204C,215C,224C,305C 'sentry':24A,25A 'sentry.io':189C,293C 'sentry.io/):':188C 'sentry.io/settings/account/security/)':292C 'sentry.zendesk.com':309C 'sentry.zendesk.com/hc/en-us/articles/46773315774235-how-do-i-enable-two-factor-authentication-2fa-on-my-sentry-account).':308C 'set':175C,287C,290C 'share':54B 'similar':324C 'singl':161C,211C,216C 'sso':7A,34B,42B,85C,174C 'step':298C,300C 'step-by-step':297C 'take':66B,107C 'true':218C 'two':238C,284C 'two-factor':237C,283C 'upgrad':226C 'us':93C 'use':59B,113C 'user':10A,46B,69B,110C,143C,166C,233C,254C,263C,269C,279C 'version':228C 'via':94C 'victim':128C,252C 'vulner':79C,102C,139C,146C,321C 'whose':71B 'without':48B 'workaround':232C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted Sentry instances with more than one organization (SENTRY_SINGLE_ORGANIZATION = False) where a user can edit SSO settings for another organization are exposed. Single-organization self-hosted instances and Sentry SaaS need no action per the vendor. Enabling account-based two-factor authentication blocks the takeover path, but organization admins cannot enable it on a user's behalf.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["sentry"],"ptokens":["sentry"],"labels":["critical","cwe290","multiorganization","package","pypi","samlsso","selfhosted","sentry","vendor"],"campaign_type":null,"search_a":"'-2026':14A,22A '-42354':15A,23A '3rj7':20A '7mc7':19A 'allow':9A 'authent':4A 'cve':13A,21A 'ghsa':17A 'ghsa-rcmw-7mc7-3rj7':16A 'ident':11A 'improp':3A 'link':12A 'process':8A 'rcmw':18A 'saml':6A 'sentri':1A 'sentry':24A,25A 'sso':7A 'user':10A","search_b":"'-290':27B 'account':70B 'address':73B 'attack':58B 'authent':50B 'code':43B 'cwe':26B 'email':72B 'host':37B 'ident':47B,63B 'instanc':56B 'know':75B 'link':44B 'malici':61B 'multi':29B 'multi-organ':28B 'multipl':52B 'one':55B 'organ':30B,53B 'packag':31B 'proper':49B 'provid':64B 'saml':33B,41B,62B 'saml-sso':32B 'self':36B 'self-host':35B 'sentri':38B,39B 'share':54B 'sso':34B,42B 'take':66B 'use':59B 'user':46B,69B 'whose':71B 'without':48B","search_c":"'/):':190C '/getsentry/self-hosted):':207C '/getsentry/sentry/pull/113720':314C '/getsentry/sentry/security/advisories/ghsa-7pq6-v88g-wf3w':327C '/hc/en-us/articles/46773315774235-how-do-i-enable-two-factor-authentication-2fa-on-my-sentry-account).':310C '/settings/account/security/)':294C '2025':329C '26.4.1':229C '2fa':272C 'abl':246C 'access':169C 'account':111C,235C,255C,278C,289C 'account-bas':234C 'action':198C,221C 'address':130C 'administr':257C 'allow':103C,214C 'anoth':120C,177C 'april':196C 'articl':307C 'attack':105C,243C 'authent':240C,249C,286C 'base':236C 'behalf':265C 'bounti':99C 'bug':98C 'cannot':258C 'complet':248C 'condit':150C 'configur':159C 'critic':78C 'deploy':194C 'detail':301C 'discov':81C 'distinct':320C 'email':129C 'enabl':275C 'ensur':271C 'exist':168C 'exploit':137C 'factor':239C,285C 'fals':163C 'fix':192C 'follow':149C 'github.com':206C,313C,326C 'github.com/getsentry/self-hosted):':205C 'github.com/getsentry/sentry/pull/113720':312C 'github.com/getsentry/sentry/security/advisories/ghsa-7pq6-v88g-wf3w':325C 'helpdesk':306C 'higher':231C 'host':142C,203C 'ident':117C 'impact':76C 'implement':86C 'individu':268C 'instanc':126C,184C 'known':133C 'malici':115C,165C 'manag':281C 'met':152C 'modifi':173C 'multi':182C 'multi-organ':181C 'must':131C 'need':223C 'note':316C 'one':157C 'order':135C 'organ':121C,158C,162C,178C,183C,212C,217C,256C 'page':295C 'patch':185C 'permiss':171C 'pleas':302C,315C 'prevent':241C 'privat':97C 'program':100C 'provid':118C 'recommend':225C 'report':91C 'requir':200C,267C 'resourc':311C 'saa':187C 'saml':84C,116C 'secur':291C 'see':303C 'self':141C,202C 'self-host':140C,201C 'sentri':88C,95C,125C,160C,186C,204C,215C,224C,305C 'sentry.io':189C,293C 'sentry.io/):':188C 'sentry.io/settings/account/security/)':292C 'sentry.zendesk.com':309C 'sentry.zendesk.com/hc/en-us/articles/46773315774235-how-do-i-enable-two-factor-authentication-2fa-on-my-sentry-account).':308C 'set':175C,287C,290C 'similar':324C 'singl':161C,211C,216C 'sso':85C,174C 'step':298C,300C 'step-by-step':297C 'take':107C 'true':218C 'two':238C,284C 'two-factor':237C,283C 'upgrad':226C 'us':93C 'use':113C 'user':110C,143C,166C,233C,254C,263C,269C,279C 'version':228C 'via':94C 'victim':128C,252C 'vulner':79C,102C,139C,146C,321C 'workaround':232C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-04-22T22:45:29+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-rcmw-7mc7-3rj7","url":"https://github.com/advisories/GHSA-rcmw-7mc7-3rj7","severity":"critical","published_at":"2026-04-30T20:44:24+00:00","modified_at":"2026-11-16T16:19:02+00:00","first_seen_at":"2026-11-16T16:23:45+00:00","fetched_at":"2026-11-16T16:27:17+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-42354","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42354","severity":null,"published_at":"2026-05-08T23:16:38+00:00","modified_at":"2026-07-24T21:10:00+00:00","first_seen_at":"2026-11-16T16:38:06+00:00","fetched_at":"2026-11-16T16:38:06+00:00","note":null}],"documents":[{"id":171201,"url":"https://api.github.com/repos/getsentry/sentry/security-advisories/GHSA-rcmw-7mc7-3rj7","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":171202,"url":"https://github.com/getsentry/sentry/security/advisories/GHSA-rcmw-7mc7-3rj7","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2026-04-22T22:45:29+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":171203,"url":"https://github.com/getsentry/sentry/pull/113720","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171204,"url":"https://github.com/getsentry/sentry/commit/0c67558ae7fe08738912d4c5233b53ead048da3b","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171205,"url":"https://github.com/getsentry/sentry/releases/tag/26.4.1","title":"Release: github.com","kind":"release","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00623,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42354"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}