---
id: CVE-2023-39531
aliases:
  - GHSA-hgj4-h2x3-rfx4
  - PYSEC-2026-1915
title: Sentry vulnerable to incorrect credential validation on OAuth token requests
summary: Sentry vulnerable to incorrect credential validation on OAuth token requests
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N'
vendor: sentry
product: sentry
ecosystem: pip
affected:
  - 'sentry >= 10.0.0, < 23.7.2'
patched:
  - sentry 23.7.2
published: '2023-08-09'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-hgj4-h2x3-rfx4'
references:
  - url: >-
      https://github.com/getsentry/sentry/security/advisories/GHSA-hgj4-h2x3-rfx4
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-39531'
  - url: 'https://github.com/getsentry/sentry'
tags:
  - osv
  - pip
epss: 0.00356
epssPercentile: 0.26631
ingestedAt: '2026-07-08T18:25:50.221Z'
---

## Overview

### Impact

An attacker with sufficient client-side exploits could retrieve a valid access token for another user during the OAuth token exchange due to incorrect credential validation. The client ID must be known and the API application must have already been authorized on the targeted user account. 

### Remediation

- **Sentry SaaS** customers do not need to take any action. Those with the highest risk will be contacted directly by Sentry.
- **Self-hosted installations** should upgrade to version 23.7.2 or higher.

### Workarounds

There are no direct workarounds, but users should review applications authorized on their account (_User Settings > Authorized Applications_) and remove any that are no longer needed.



## Affected packages

- `sentry >= 10.0.0, < 23.7.2`

## Remediation

Upgrade to a patched release:

- `sentry 23.7.2`
