{"answers":{"affected":"3 open source packages ship an affected version, including sentry-sdk. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-28117 in the wild and no public exploit code.","fix":"Upgrade sentry-sdk to 1.14.0 or later.","what":"CVE-2023-28117 is a high-severity vulnerability in getsentry sentry-python, published on 22 Mar 2023. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-28117 and fix it if it is affected.\n\nWhat it is: CVE-2023-28117 is a high-severity vulnerability in getsentry sentry-python, published on 22 Mar 2023. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-28117 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sentry-sdk (PyPI): affected all versions; fixed in 1.14.0\n- sentry-sdk (PyPI): affected all versions; fixed in 1.14.0\n- sentry-sdk (PyPI): affected all versions; fixed in 1.14.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-28117/ (Markdown: https://insights.sbomify.com/CVE-2023-28117/index.md)","id":"CVE-2023-28117","markdown":"https://insights.sbomify.com/CVE-2023-28117/index.md","name":"CVE-2023-28117","record":{"aliases":["GHSA-29pr-6jr8-q5jm","PYSEC-2026-920","ROOT-APP-PYPI-CVE-2023-28117","UBUNTU-CVE-2023-28117"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Sentry Python SDK","requires_auth":"high_privilege","summary":"Sentry Python SDK leaks sensitive session cookies to Sentry when sendDefaultPII is enabled with custom cookie names, allowing potential account takeover.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sentry_software_development_kit","vendor":"sentry"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information"},{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data"}],"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.\n\nIn 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.\n\nAs 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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Sentry SDK leaks sensitive session information when `sendDefaultPII` is set to `True`","id":"CVE-2023-28117","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":3,"next":{"headline":"kaml has potential denial of service while parsing input with anchors and aliases","id":"CVE-2023-28118"},"packages":[{"ecosystem":"PyPI","fixed":["1.14.0"],"introduced":["0"],"last_affected":[],"package":"sentry-sdk","purl":null,"source":"GHSA-29pr-6jr8-q5jm"},{"ecosystem":"PyPI","fixed":["1.14.0"],"introduced":["0"],"last_affected":[],"package":"sentry-sdk","purl":"pkg:pypi/sentry-sdk","source":"GHSA-29pr-6jr8-q5jm"},{"ecosystem":"PyPI","fixed":["1.14.0"],"introduced":["0"],"last_affected":[],"package":"sentry-sdk","purl":"pkg:pypi/sentry-sdk","source":"PYSEC-2026-920"}],"prev":{"headline":"Buffer overflow in L2CAP due to misconfigured MTU","id":"CVE-2023-28116"},"products":["sentry-python"],"published":"2023-03-22","related":[{"cvss_score":9.3,"headline":"Sentry Next.js vulnerable to SSRF via Next.js SDK tunnel endpoint","id":"CVE-2023-46729","kev_date_added":null,"published":"2023-11-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["getsentry"]},"summary":"Sentry Python SDK leaks sensitive session cookies to Sentry when sendDefaultPII is enabled with custom cookie names, allowing potential account takeover.","url":"https://insights.sbomify.com/CVE-2023-28117/"}