Advisory

PYSEC-2026-532

Also known as: CVE-2025-22146, GHSA-7pq6-v88g-wf3w

Summary

Sentry's improper authentication on SAML SSO process allows user impersonation

Details

Impact
A critical vulnerability was discovered in the SAML SSO implementation of Sentry. It was reported to us via our 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.

Patches

  • Sentry SaaS: The fix was deployed on Jan 14, 2025.
  • Self-Hosted Sentry: If only a single organization is allowed (SENTRY_SINGLE_ORGANIZATION = True), then no action is needed. Otherwise, users should upgrade to version 25.1.0 or higher.

Workarounds
No known workarounds.

References

  • https://github.com/getsentry/sentry/pull/83407

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:23 UTC

Affected packages and fixes

sentry

PyPI · All systems

Affected

  • introduced 21.12.0, fixed 25.1.0 (ecosystem)

Fixed versions

25.1.0

Fix

  • Fixed version 25.1.0
    pip install --upgrade sentry==25.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences