GHSA-68c2-4mpx-qh95

Suggest an improvement
Source
https://github.com/advisories/GHSA-68c2-4mpx-qh95
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-68c2-4mpx-qh95/GHSA-68c2-4mpx-qh95.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-68c2-4mpx-qh95
Published
2024-03-01T16:57:56Z
Modified
2024-03-01T16:57:56Z
Summary
Potential leakage of Sentry auth tokens by React Native SDK with Expo plugin
Details

Impact

SDK versions between and including 5.16.0 and 5.19.0 allowed Sentry auth tokens to be set in the optional authToken configuration parameter, for debugging purposes. Doing so would result in the auth token being built into the application bundle, and therefore the auth token could be potentially exposed in case the application bundle is subsequently published.

You may ignore this notification if you are not using authToken configuration parameter in your React Native SDK configuration or did not publish apps using this way of configuring the authToken.

If you had set the authToken in the plugin config previously, and built and published an app with that config, you should rotate your token.

Patches

The behavior that allowed setting an authToken parameter was fixed in SDK version 5.19.1 where, if this parameter was set, you will see a warning and the authToken would be removed before bundling the application.

Workarounds

  1. Remove authToken from the plugin configuration.
  2. If you had set the authToken in the plugin config previously, and built and published an app with that config, you should rotate your token.

References

Database specific
{
    "cwe_ids": [
        "CWE-200"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-03-01T16:57:56Z",
    "nvd_published_at": null,
    "severity": "LOW"
}
References

Affected packages

npm / @sentry/react-native

Package

Name
@sentry/react-native
View open source insights on deps.dev
Purl
pkg:npm/%40sentry/react-native

Affected ranges

Type
SEMVER
Events
Introduced
5.16.0
Fixed
5.19.1

Database specific

last_known_affected_version_range
"<= 5.19.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-68c2-4mpx-qh95/GHSA-68c2-4mpx-qh95.json"