Sentry vulnerable to privilege escalation via ApiTokensEndpoint
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-284.
Summary
Sentry is an error tracking and performance monitoring platform. Starting in version 22.1.0 and prior to version 23.7.2, an attacker with access to a token with few or no scopes can query `/api/0/api-tokens/` for a list of all tokens created by a user, including tokens with greater scopes, and use those tokens in other requests. There is no evidence that the issue was exploited on `sentry.io`. For self-hosted users, it is advised to rotate user auth tokens. A fix is available in version 23.7.2 of `sentry` and `self-hosted`. There are no known workarounds.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| getsentry | sentry | 22.1.0 to before 23.7.2 | 23.7.2 | Patch available | CNA |
| — | sentry (PyPI) | 22.1.0 to before 23.7.2 | 23.7.2 | Patch available | GHSA-9jcq-jf57-c62c |
- sentry Vendorgetsentry Affected 22.1.0 to before 23.7.2 Fixed in 23.7.2 Patch available CNA
- sentry (PyPI) Vendor— Affected 22.1.0 to before 23.7.2 Fixed in 23.7.2 Patch available GHSA-9jcq-jf57-c62c
Remediation
- Fix · CNA sentry (getsentry) Fixed in 23.7.2
- Fix · GHSA-9jcq-jf57-c62c sentry (PyPI) Fixed in 23.7.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-39349
- 2026-10-03 Alias added: GHSA-9jcq-jf57-c62c
References
Patch 2
More getsentry vulnerabilities
- TI-2026-21018 Sentry allows unauthorized access to event data across organizational boundaries CVSS 4.0MEDIUM 5.7
- TI-2026-30656 Sentry: Improper authentication on SAML SSO process allows user identity linking CVSS 3.1CRITICAL 9.8
- TI-2026-78982 Sentry-Javascript: Middleware Bypass when using Tunnel route CVSS 4.0CRITICAL 9.1
- TI-2025-16094 Improper authentication on SAML SSO process allows user impersonation in sentry CVSS 3.1CRITICAL 9.1
- TI-2023-25212 Sentry Next.js vulnerable to SSRF via Next.js SDK tunnel endpoint CVSS 3.1CRITICAL 9.3
- TI-2026-21634 Sentry: Improper Authentication on SAML SSO process allows user identity linking CVSS 3.1CRITICAL 9.1
Sources
- CVE-2023-39349 · CVE Program
- CVE-2023-39349 · NVD
- FIRST EPSS
- GHSA-9jcq-jf57-c62c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences