CVE-2025-54594 Details
Description
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 pull_request_target 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 GITHUB_TOKEN and NPM_TOKEN, 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.
A vulnerability exists in the 'react-native-bottom-tabs' library for React Native, specifically in versions through 0.9.2. The issue arises from the GitHub Actions workflow 'release-canary.yml', which improperly utilized the 'pull_request_target' event trigger. This flaw allowed untrusted code from forked pull requests to be executed in a privileged context. An attacker could exploit this by creating a pull request with a malicious preinstall script in the package.json file and then triggering the workflow by commenting '!canary'. This exploitation could lead to arbitrary code execution, allowing the attacker to exfiltrate sensitive secrets like GITHUB_TOKEN and NPM_TOKEN, and potentially push malicious code to the repository or publish compromised packages to the NPM registry.
The vulnerability has been addressed by removing the 'release-canary.yml' workflow file from the repository. However, users are advised to audit any workflows triggered by 'pull_request_target' or 'issue_comment', avoid checking out untrusted code in workflows with write-level tokens, and rotate any potentially compromised secrets, especially GITHUB_TOKEN and NPM_TOKEN.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 6, 2025CISA-ADP
Assessed Aug 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-269 | Improper Privilege Management | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| callstackincubator/react-native-bottom-tabs | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2025 | New CVE Received | [email protected] |
Volerion