Malicious Code Detected in generator-accelerate-react-native Package
Summary
MAL-2025-21269: Malicious code in generator-accelerate-react-native (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The generator-accelerate-react-native package is an npm tool designed to streamline the development of React Native applications. It provides developers with a set of templates and utilities to accelerate the setup process. However, this package has been found to contain malicious code that poses a significant security risk to users and their applications.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the generator-accelerate-react-native package. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other malicious activities. The specific technical aspects of the malicious code have not been disclosed, but its presence indicates a severe risk to developers and users relying on this package for their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall generator-accelerate-react-native
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, consider using alternative packages that provide similar functionality without the associated risks. Always ensure to review the security status of any package before integrating it into your project.
Conclusion
The discovery of malicious code in the generator-accelerate-react-native package highlights the importance of vigilance when using open-source software. Developers should take immediate action to remove the affected package and consider alternative solutions to safeguard their applications.
See every vulnerability recorded for generator-accelerate-react-native →
FAQ
It is an npm package designed to help developers quickly set up React Native applications with pre-defined templates and utilities.
The malicious code was identified by security researchers from Amazon Inspector, who reported the findings to the community.
Using this package may expose your application to security vulnerabilities, including unauthorized access and data breaches.
You can use Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can check your application using the Vulert playground without any signup.
Immediately uninstall the package and consider using alternative solutions. Regularly check for updates and vulnerabilities in your dependencies.