CVE-2025-54594: react-native-bottom-tabs: Arbitrary code execution in GitHub Actions canary workflow leads to secret exfiltration
react-native-bottom-tabs is a library of Native Bottom Tabs for React Native. In versions 0.9.2 and below, the github/workflows/release-canary.yml GitHub Actions repository workflow improperly used the pullrequesttarget event trigger, which allowed for untrusted code from a forked pull request to be executed in a privileged context. An attacker could create a pull request containing a malicious preinstall script in the package.json file and then trigger the vulnerable workflow by posting a specific comment (!canary). This allowed for arbitrary code execution, leading to the exfiltration of sensitive secrets such as GITHUBTOKEN and NPMTOKEN, and could have allowed an attacker to push malicious code to the repository or publish compromised packages to the NPM registry. There is a remediation commit which removes github/workflows/release-canary.yml, but a version with this fix has yet to be released.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-54594?
CVE-2025-54594 has a medium severity rating due to the risk of untrusted code execution from forked repositories.
How do I fix CVE-2025-54594?
To fix CVE-2025-54594, upgrade react-native-bottom-tabs to version 0.9.3 or later, which resolves the issue.
What versions of react-native-bottom-tabs are affected by CVE-2025-54594?
Versions of react-native-bottom-tabs up to and including 0.9.2 are affected by CVE-2025-54594.
What impact does CVE-2025-54594 have on my application?
CVE-2025-54594 may allow an attacker to execute untrusted code within your application if unprotected pull requests are used.
Is it safe to continue using react-native-bottom-tabs with CVE-2025-54594?
It is not safe to continue using the vulnerable versions of react-native-bottom-tabs until they are upgraded to versions 0.9.3 or higher.