平台
react
组件
react-native-bottom-tabs
修复版本
0.9.3
CVE-2025-54594 描述了 react-native-bottom-tabs 库中的一个远程代码执行 (RCE) 漏洞。该漏洞源于 GitHub Actions 工作流配置不当,允许来自恶意 pull request 的代码在特权上下文中执行。受影响的版本包括 0.9.2 及更早版本。建议立即升级至 0.9.3 版本以消除此风险。
攻击者可以利用此漏洞通过提交包含恶意 preinstall 脚本的 package.json 文件的 pull request,并触发特定的评论 (!canary) 来触发易受攻击的工作流。这使得攻击者能够在构建过程中执行任意代码,从而获得对项目的完全控制权。潜在的影响包括敏感信息的窃取(例如 API 密钥、数据库密码)、恶意软件的注入以及对应用程序行为的篡改。由于该漏洞涉及 GitHub Actions,攻击者可能能够影响使用该库的多个项目,造成广泛的破坏。该漏洞的严重性类似于供应链攻击,攻击者可以通过修改依赖项来影响下游用户。
该漏洞已公开披露,并已添加到 NVD 数据库中。目前尚无已知的公开利用程序,但由于漏洞的严重性,预计未来可能会出现。该漏洞的 EPSS 评分预计为中等至高,表明存在被利用的可能性。建议密切关注安全社区的动态,并及时采取缓解措施。
React Native developers and organizations using the react-native-bottom-tabs library in their projects are at risk. This includes those relying on automated build pipelines and continuous integration/continuous delivery (CI/CD) systems, as the vulnerability can be exploited during the build process. Projects utilizing forked repositories or accepting pull requests from external contributors are particularly vulnerable.
• react: Examine your package.json files for suspicious preinstall scripts, especially in dependencies related to react-native-bottom-tabs.
grep 'preinstall' package.json• github: Review your GitHub Actions workflows (.github/workflows/release-canary.yml) for improper use of pullrequesttarget event triggers. Ensure that only trusted code is executed in privileged contexts.
• react: Check your project's dependencies for versions of react-native-bottom-tabs less than 0.9.3 using npm list react-native-bottom-tabs or yarn list react-native-bottom-tabs.
disclosure
漏洞利用状态
EPSS
0.08% (23% 百分位)
CISA SSVC
CVSS 向量
最有效的缓解措施是立即将 react-native-bottom-tabs 升级至 0.9.3 或更高版本。如果升级会导致构建中断,可以考虑回滚到之前的稳定版本,并密切监控潜在的攻击活动。此外,建议审查 GitHub Actions 工作流的配置,确保使用安全的事件触发器,并验证所有输入数据的来源。可以考虑使用 GitHub 的安全功能,例如代码扫描和依赖项分析,以检测和防止此类漏洞。由于该漏洞涉及 GitHub Actions,建议审查所有使用该库的项目的 GitHub Actions 配置。
更新到 0.9.2 之后的版本,当可用时。或者,从仓库中删除 workflow `github/workflows/release-canary.yml`。审查 GitHub Actions 密钥并撤销任何已泄露的 token。
漏洞分析和关键警报直接发送到您的邮箱。
CVE-2025-54594 是 react-native-bottom-tabs 库中发现的远程代码执行漏洞,影响版本小于等于 0.9.2。攻击者可以通过恶意 pull request 执行任意代码。
如果您正在使用 react-native-bottom-tabs 的版本小于等于 0.9.2,则您可能受到此漏洞的影响。请立即检查您的项目依赖项。
将 react-native-bottom-tabs 升级至 0.9.3 或更高版本以修复此漏洞。
目前尚无已知的公开利用程序,但由于漏洞的严重性,预计未来可能会出现。
请查阅 react-native-bottom-tabs 官方 GitHub 仓库或相关安全公告以获取更多信息。