Critical Malicious Code Vulnerability in react-native-country-select Package
Summary
MAL-2026-1931: Malicious code in react-native-country-select (npm). Affects react-native-country-select versions 0.3.91. 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-country-select package is a popular npm library that allows developers to easily implement country selection in their React Native applications. It provides a user-friendly interface and supports various customization options. However, this package has been found to contain malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the react-native-country-select package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code poses significant risks, as it may lead to data breaches and unauthorized control over affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-native-country-select
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
Currently, the best workaround is to uninstall the react-native-country-select package entirely. You can do this by running the command: npm uninstall react-native-country-select. Additionally, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The react-native-country-select package has been identified as containing malicious code that poses a serious security risk. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for react-native-country-select →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated to the latest versions.
Failure to address this vulnerability could lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
Yes, consider exploring other country selection libraries that do not have known vulnerabilities and are actively maintained.