Critical Malicious Code Vulnerability in react-native-modest-checkbox Package
Summary
MAL-2025-191001: Malicious code in react-native-modest-checkbox (npm). Affects react-native-modest-checkbox versions 3.3.1. 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-modest-checkbox package is a popular npm library used for creating checkbox components in React Native applications. It provides developers with customizable checkbox options and is widely utilized in mobile app development. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that depend on it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the react-native-modest-checkbox package. This code can compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the 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-modest-checkbox
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, you can replace the react-native-modest-checkbox package with an alternative checkbox library that does not have known vulnerabilities. Ensure to thoroughly review the library's security history before implementation.
Conclusion
The discovery of malicious code in the react-native-modest-checkbox package poses a serious threat to applications utilizing this library. Immediate action is required to mitigate risks, including uninstalling the package and monitoring for any unauthorized access to sensitive data. Utilizing tools like Vulert can aid in identifying vulnerabilities in your software.
See every vulnerability recorded for react-native-modest-checkbox →
FAQ
It is an npm library used for creating checkbox components in React Native applications.
The malicious code can compromise your system, allowing unauthorized access to sensitive data and potentially leading to a complete security breach.
You should immediately uninstall the package and rotate any sensitive information stored on your system.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities. You can check your application using the Vulert playground without any signup.
Vulert is a service that uses package-lock.json to monitor and alert in real-time for open-source vulnerabilities in your software.