Critical Malicious Code Vulnerability in react-native-phone-call Package
Summary
MAL-2025-191003: Malicious code in react-native-phone-call (npm). Affects react-native-phone-call versions 1.2.1 – 1.2.2. 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 react-native-phone-call package is a popular library used in React Native applications to facilitate phone call functionalities. It allows developers to easily integrate calling features into their mobile applications, enhancing user experience. However, recent findings have revealed that this package contains malicious code, posing significant security risks to users and their data.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the react-native-phone-call package, specifically in versions 1.2.1 and 1.2.2. This code can compromise any computer that has the package installed, allowing unauthorized access to sensitive information, including secrets and keys. The malicious nature of this code is classified under CWE-506, indicating that it embeds harmful functionalities that can lead to severe security breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-native-phone-call
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 measure, you can prevent the use of the affected package by removing it from your dependencies and replacing it with an alternative library that provides similar functionality without the associated risks.
Conclusion
The discovery of malicious code within the react-native-phone-call package highlights the importance of regularly auditing dependencies in software projects. By promptly addressing this vulnerability, developers can protect their applications and users from potential security threats.
See every vulnerability recorded for react-native-phone-call →
FAQ
Immediately remove the package from your project and consider rotating any sensitive keys or secrets stored on the affected system.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of user trust.
While searching for alternatives, ensure that your application is not running in a production environment and monitor for any suspicious activity.
You can find detailed documentation and community discussions on the package's GitHub repository or npm page.