# CVE-2023-28117: Sentry SDK leaks sensitive session information when \`sendDefaultPII\` is set to \`True\`

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.6
- **CVSS:** 7.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.74% (percentile 51, 2026-11-26)
- **CWE:** CWE-201, CWE-209
- **Aliases:** GHSA-29pr-6jr8-q5jm, PYSEC-2026-920
- **Published:** 2023-03-21T22:31:19.000Z
- **Modified:** 2026-09-10T03:49:52.267Z

## Who should check

- Projects that depend on PyPI package sentry-sdk (\< 1.14.0)
- Anyone running getsentry sentry-python \< 1.14.0

## Description

Sentry SDK is the official Python SDK for Sentry, real-time crash reporting software. When using the Django integration of versions prior to 1.14.0 of the Sentry SDK in a specific configuration it is possible to leak sensitive cookies values, including the session cookie to Sentry. These sensitive cookies could then be used by someone with access to your Sentry issues to impersonate or escalate their privileges within your application.

In order for these sensitive values to be leaked, the Sentry SDK configuration must have \`sendDefaultPII\` set to \`True\`; one must use a custom name for either \`SESSION\_COOKIE\_NAME\` or \`CSRF\_COOKIE\_NAME\` in one's Django settings; and one must not be configured in one's organization or project settings to use Sentry's data scrubbing features to account for the custom cookie names.

As of version 1.14.0, the Django integration of the \`sentry-sdk\` will detect the custom cookie names based on one's Django settings and will remove the values from the payload before sending the data to Sentry. As a workaround, use the SDK's filtering mechanism to remove the cookies from the payload that is sent to Sentry. For error events, this can be done with the \`before\_send\` callback method and for performance related events (transactions) one can use the \`before\_send\_transaction\` callback method. Those who want to handle filtering of these values on the server-side can also use Sentry's advanced data scrubbing feature to account for the custom cookie names. Look for the \`$http.cookies\`, \`$http.headers\`, \`$request.cookies\`, or \`$request.headers\` fields to target with a scrubbing rule.

## Affected and fixed versions

- PyPI `sentry-sdk`: affected \< 1.14.0; fixed 1.14.0 (osv)
- getsentry sentry-python: \< 1.14.0 (cvelist)

## Mitigation

- Upgrade sentry-sdk to 1.14.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-28117. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-28117.md
Affected: sentry-sdk < 1.14.0
Fixed in: 1.14.0

Steps:
1. Search this machine and project for sentry-sdk (PyPI), getsentry sentry-python: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-28117 being exploited?

There is no confirmed exploitation: CVE-2023-28117 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-28117?

High: CVSS 7.6 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-28117?

sentry-sdk \< 1.14.0.

### Is there a fix for CVE-2023-28117?

Yes. Fixed in 1.14.0. Upgrade sentry-sdk to 1.14.0 or later.

### How do I check if I'm affected by CVE-2023-28117?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/getsentry/sentry-python/security/advisories/GHSA-29pr-6jr8-q5jm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-28117>
- vendor: <https://github.com/advisories/GHSA-29pr-6jr8-q5jm>
- patch: <https://github.com/getsentry/sentry-python/pull/1842>
- other: <https://github.com/getsentry/sentry-python/releases/tag/1.14.0>
- other: <https://github.com/getsentry/sentry-python>
- other: <https://pypi.org/project/sentry-sdk>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-28117>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-29pr-6jr8-q5jm> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-920> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-28117> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-28117>
