Vulnerabilities in pkg:pypi/sentry

PACKAGE
Advisory Identifier: GHSA-rcmw-7mc7-3rj7
Advisory Summary

CVE-2026-42354 is a CRITICAL (CVSS 9.1) sentry's improper authentication on saml vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Sentry libraries in the PyPI ecosystem. The issue involves sentry's improper authentication on saml sso process allows user identity linking. Remediation is available by upgrading affected packages to version 26.4.1.

15 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/sentry

15 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/sentry. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rcmw-7mc7-3rj7 CVE-2026-42354 CRITICAL Sentry's improper authentication on SAML SSO process allows user identity linking
GHSA-444r-2whx-3685 CVE-2021-47935 HIGH Sentry: Superusers can execute arbitrary commands by injecting malicious pickle-serialized objects through audit log entry data parameter
GHSA-v5h2-q2w4-gpcx CVE-2024-53253 MODERATE Sentry improper error handling leaks Application Integration Client Secret
GHSA-ggmg-cqg6-j45g CVE-2026-27197 CRITICAL Sentry: Improper authentication on SAML SSO process allows user identity linking
GHSA-fm88-hc3v-3www CVE-2024-41656 HIGH Sentry vulnerable to stored Cross-Site Scripting (XSS)
GHSA-6cjm-4pxw-7xp9 CVE-2024-32474 HIGH Sentry vulnerable to leaking superuser cleartext password in logs
GHSA-7pq6-v88g-wf3w CVE-2025-22146 CRITICAL Sentry's improper authentication on SAML SSO process allows user impersonation
GHSA-54m3-95j9-v89j CVE-2024-45605 HIGH Sentry improperly authorizes deletion of user issue alert notifications
GHSA-m4hc-m2v6-hfw8 CVE-2023-36826 HIGH Improper authorization on debug and artifact file downloads
GHSA-v345-w9f2-mpm5 CVE-2024-45606 HIGH Sentry improperly authorizes muting of alert rules
GHSA-jv85-mqxj-3f9j CVE-2022-23485 MODERATE Sentry vulnerable to invite code reuse via cookie manipulation
GHSA-c2g2-gx4j-rj3j CVE-2024-35196 LOW Slack integration leaks sensitive information in logs
GHSA-hgj4-h2x3-rfx4 CVE-2023-39531 MODERATE Sentry vulnerable to incorrect credential validation on OAuth token requests
GHSA-9jcq-jf57-c62c CVE-2023-39349 HIGH Privilege escalation via ApiTokensEndpoint
GHSA-4xqm-4p72-87h6 CVE-2023-36829 MODERATE Sentry CORS misconfiguration

CVE-2026-42354 at a Glance

CVE Identifier CVE-2026-42354
GHSA Identifier GHSA-rcmw-7mc7-3rj7
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-290: Authentication Bypass by Spoofing
Affected Product Sentry
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-42354

To remediate this vulnerability, upgrade all affected Sentry dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sentry fixed: 26.4.1
pip install sentry>=26.4.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show sentry

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-42354, inspect your installed packages using pip:

pip show sentry

Analyze the terminal output to locate any version of Sentry in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.4.1), your application is affected.

Note: The pip show sentry command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Sentry, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-42354 Affected Sentry Versions

1 component(s)
Fixed Versions:
26.4.1
Product / Package Ecosystem Affected Versions Fixed Version
sentry
PyPI
≥ 21.12.0
< 26.4.1
26.4.1

References

Frequently Asked Questions

What is CVE-2026-42354?
CVE-2026-42354 is a security vulnerability in Sentry involving Sentry's improper authentication on SAML SSO process allows user identity linking under CWE-290: Authentication Bypass by Spoofing.
Which Sentry versions are affected?
Affected versions include releases prior to 26.4.1 across affected packages: sentry.
What version fixes CVE-2026-42354?
Upgrading to 26.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sentry affected?
Yes, sentry is affected in releases prior to 26.4.1. Upgrade your dependency to 26.4.1 or later.
What is the CVSS score of CVE-2026-42354?
CVE-2026-42354 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-42354?
CVE-2026-42354 is classified under CWE-290: Authentication Bypass by Spoofing (This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.).
How can I check PyPI dependencies for CVE-2026-42354?
Run the dependency tree command: 'pip show sentry'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rcmw-7mc7-3rj7",
  "modified" : "2026-11-16T16:19:02Z",
  "published" : "2026-04-30T20:44:24Z",
  "aliases" : [ "CVE-2026-42354" ],
  "summary" : "Sentry's improper authentication on SAML SSO process allows user identity linking",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sentry"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "21.12.0"
      }, {
        "fixed" : "26.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/security/advisories/GHSA-rcmw-7mc7-3rj7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42354"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/pull/113720"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/commit/0c67558ae7fe08738912d4c5233b53ead048da3b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/getsentry/sentry"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry/releases/tag/26.4.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/sentry/PYSEC-2026-534.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/sentry"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-290" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-30T20:44:24Z",
    "nvd_published_at" : "2026-05-08T23:16:38Z"
  }
}