GHSA-68c2-4mpx-qh95 json
Potential leakage of Sentry auth tokens by React Native SDK with Expo plugin
published 2y ago modified 2y ago
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### 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](https://docs.sentry.io/product/accounts/auth-tokens/).
### 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](https://docs.sentry.io/product/accounts/auth-tokens/).
### References * [sentry-react-native 5.19.1 release notes](https://github.com/getsentry/sentry-react-native/releases/tag/5.19.1) * https://github.com/getsentry/sentry-docs/pull/9244
Patch / fix
- npm @sentry/react-native 5.19.1
Is GHSA-68c2-4mpx-qh95 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @sentry/react-native | >=5.16.0, <5.19.1 |
5.19.1 |
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
github.com
/getsentry/sentry-react-native/commit/9148964a50d2ea1de830854c95f3649f6cb94b1b
web
-
github.com
/getsentry/sentry-react-native/security/advisories/GHSA-68c2-4mpx-qh95
web, advisory
-
github.com
/getsentry/sentry-react-native
package
-
github.com
/getsentry/sentry-react-native/releases/tag/5.19.1
web
Sources
- GitHub Advisory GHSA-68c2-4mpx-qh95
- Maintainer advisory GHSA-68c2-4mpx-qh95
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of getsentry/sentry-react-native published their own advisory on GitHub. Reviewed sources take precedence over it.