Vulnerabilities in pkg:maven/io.sentry/sentry-android

PACKAGE
Advisory Summary

GHSA-7cjh-xx4r-qh3f is a HIGH sentry-android unmasked sensitive data vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Sentry android libraries in the Maven ecosystem. The issue involves sentry-android unmasked sensitive data in android session replays for users of jetpack compose 1.8+. Remediation is available by upgrading affected packages to version 8.14.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.sentry/sentry-android

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.sentry/sentry-android. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7cjh-xx4r-qh3f - HIGH sentry-android unmasked sensitive data in Android Session Replays for users of Jetpack Compose 1.8+

GHSA-7cjh-xx4r-qh3f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7cjh-xx4r-qh3f
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Sentry android
Package Ecosystem Maven
Published Date
Last Updated

How to Fix GHSA-7cjh-xx4r-qh3f

To remediate this vulnerability, upgrade all affected Sentry android dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.sentry:sentry-android fixed: 8.14.0
<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-android</artifactId>
    <version>8.14.0</version>
</dependency>
io.sentry:sentry-android-replay fixed: 8.14.0
<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-android-replay</artifactId>
    <version>8.14.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.sentry

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-7cjh-xx4r-qh3f, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.sentry

Analyze the terminal output to locate any version of Sentry android in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.14.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.sentry command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Sentry android, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Under specific circumstances, text composables may contain unmasked sensitive data in Android session replays. You may be impacted if you meet the following conditions: - Using any `sentry-android` with versions < 8.14.0 - Using Jetpack Compose >= [1.8.0-alpha08](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0-alpha08) - This includes any alpha, beta, release candidate, or general availability after this version - Have configured Sentry Session Replays for Android > [!IMPORTANT] > If you do not use Jetpack Compose or have never used a version >= 1.8.0-alpha08 you are not impacted. > [!IMPORTANT] > If you have not configured [Session Replays for Mobile](https://docs.sentry.io/product/explore/session-replay/mobile/) you are not impacted. ### How do I check if I'm impacted? If you meet the conditions above, the `sentry-android` package includes a [specific error log](https://github.com/getsentry/sentry-java/blob/b2920907e6afb69a8027cedb251dd94a3514f0e6/sentry-android-replay/src/main/java/io/sentry/android/replay/viewhierarchy/ComposeViewHierarchyNode.kt#L252-L261) that would indicate you may be impacted. Customers may use [logcat](https://developer.android.com/tools/logcat) to search for this event. ### I'm impacted and want this data deleted If you've confirmed that you're affected and unmasked sensitive data in Session Replays have reached Sentry servers, you can please see this documentation on [deleting individual replays](https://docs.sentry.io/product/explore/session-replay/web/replay-details/#delete-replays). If you'd like to request bulk deletion, please reach out to your Account Manager or support@sentry.io to request deletion. ### Patches Upgrade the `sentry-android` SDK to version [8.14.0](https://github.com/getsentry/sentry-java/releases/tag/8.14.0) ### Workarounds We recommend upgrading to the latest version of the SDK, but if it is not an option, customers may either: - Downgrade their use of Jetpack Compose to <= 1.7.x - Drop session sample rates to 0.0 ``` options.sessionReplay.onErrorSampleRate = 0.0 options.sessionReplay.sessionSampleRate = 0.0 ``` Please see our documentation for more information configuring [Session Replays for Android](https://docs.sentry.io/platforms/android/session-replay/#set-up). ### References This issue was identified in Issue https://github.com/getsentry/sentry-java/issues/4467 and fixed in https://github.com/getsentry/sentry-java/pull/4485

GHSA-7cjh-xx4r-qh3f Affected Sentry android Versions

2 component(s)
Fixed Versions:
8.14.0
Product / Package Ecosystem Affected Versions Fixed Version
io.sentry:sentry-android
Maven
< 8.14.0
8.14.0
io.sentry:sentry-android-replay
Maven
< 8.14.0
8.14.0

References

Frequently Asked Questions

What is GHSA-7cjh-xx4r-qh3f?
GHSA-7cjh-xx4r-qh3f is a security vulnerability in Sentry android involving sentry-android unmasked sensitive data in Android Session Replays for users of Jetpack Compose 1.8+ under CWE-532: Insertion of Sensitive Information into Log File.
Which Sentry android versions are affected?
Affected versions include releases prior to 8.14.0 across affected packages: io.sentry:sentry-android, io.sentry:sentry-android-replay.
What version fixes GHSA-7cjh-xx4r-qh3f?
Upgrading to 8.14.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sentry-android affected?
Yes, io.sentry:sentry-android is affected in releases prior to 8.14.0. Upgrade your dependency to 8.14.0 or later.
Is sentry-android-replay affected?
Yes, io.sentry:sentry-android-replay is affected in releases prior to 8.14.0. Upgrade your dependency to 8.14.0 or later.
What CWE is associated with GHSA-7cjh-xx4r-qh3f?
GHSA-7cjh-xx4r-qh3f is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Maven dependencies for GHSA-7cjh-xx4r-qh3f?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.sentry'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7cjh-xx4r-qh3f",
  "modified" : "2025-06-20T19:27:36Z",
  "published" : "2025-06-20T13:28:26Z",
  "aliases" : [ ],
  "summary" : "sentry-android unmasked sensitive data in Android Session Replays for users of Jetpack Compose 1.8+",
  "details" : "### Impact\n\nUnder specific circumstances, text composables may contain unmasked sensitive data in Android session replays.  You may be impacted if you meet the following conditions:\n- Using any `sentry-android` with versions < 8.14.0 \n- Using Jetpack Compose >= [1.8.0-alpha08](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0-alpha08)\n  - This includes any alpha, beta, release candidate, or general availability after this version\n- Have configured Sentry Session Replays for Android\n\n> [!IMPORTANT] \n> If you do not use Jetpack Compose or have never used a version >= 1.8.0-alpha08 you are not impacted. \n\n> [!IMPORTANT] \n> If you have not configured [Session Replays for Mobile](https://docs.sentry.io/product/explore/session-replay/mobile/) you are not impacted.\n\n### How do I check if I'm impacted?\n\nIf you meet the conditions above, the `sentry-android` package includes a [specific error log](https://github.com/getsentry/sentry-java/blob/b2920907e6afb69a8027cedb251dd94a3514f0e6/sentry-android-replay/src/main/java/io/sentry/android/replay/viewhierarchy/ComposeViewHierarchyNode.kt#L252-L261) that would indicate you may be impacted. Customers may use [logcat](https://developer.android.com/tools/logcat) to search for this event.\n\n### I'm impacted and want this data deleted\n\nIf you've confirmed that you're affected and unmasked sensitive data in Session Replays have reached Sentry servers, you can please see this documentation on [deleting individual replays](https://docs.sentry.io/product/explore/session-replay/web/replay-details/#delete-replays). If you'd like to request bulk deletion, please reach out to your Account Manager or support@sentry.io to request deletion. \n\n### Patches\n\nUpgrade the `sentry-android` SDK to version [8.14.0](https://github.com/getsentry/sentry-java/releases/tag/8.14.0)\n\n### Workarounds\n\nWe recommend upgrading to the latest version of the SDK, but if it is not an option, customers may either:\n- Downgrade their use of Jetpack Compose to <= 1.7.x\n- Drop session sample rates to 0.0 \n```\noptions.sessionReplay.onErrorSampleRate = 0.0\noptions.sessionReplay.sessionSampleRate = 0.0\n```\nPlease see our documentation for more information configuring [Session Replays for Android](https://docs.sentry.io/platforms/android/session-replay/#set-up).\n\n### References\n\nThis issue was identified in Issue https://github.com/getsentry/sentry-java/issues/4467 and fixed in https://github.com/getsentry/sentry-java/pull/4485",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.sentry:sentry-android"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.14.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.sentry:sentry-android-replay"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.14.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry-java/security/advisories/GHSA-7cjh-xx4r-qh3f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry-java/issues/4467"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry-java/pull/4485"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry-java/commit/8bfa9cceab402e58f6723a0694158d27e8a41a56"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/getsentry/sentry-java"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/getsentry/sentry-java/releases/tag/8.14.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-20T13:28:26Z",
    "nvd_published_at" : null
  }
}