Critical Malicious Code Vulnerability in react-native-log-level Package
Summary
MAL-2025-191000: Malicious code in react-native-log-level (npm). Affects react-native-log-level 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-log-level package is a logging utility designed for React Native applications, enabling developers to manage log levels and output effectively. It is widely used in the React Native ecosystem for debugging and monitoring application behavior. However, recent findings have revealed that this package contains malicious code, posing significant security risks to any application utilizing it.
Vulnerability Detail
The vulnerability originates from the discovery of embedded malicious code within the react-native-log-level package. This code can compromise any system where the package is installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code means that systems running this package should be considered fully compromised, necessitating immediate action to mitigate risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-native-log-level
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-log-level package with an alternative logging library that does not have known vulnerabilities. Ensure to thoroughly test your application after making this change to confirm that logging functionality remains intact.
Conclusion
The discovery of malicious code in the react-native-log-level package poses a serious threat to applications using it. Immediate action is required to uninstall the package and secure any compromised secrets. Utilizing tools like Vulert can help monitor for vulnerabilities in your software effectively.
See every vulnerability recorded for react-native-log-level →
FAQ
You should immediately uninstall the package and rotate any secrets or keys that may have been compromised.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
Currently, there are no patched versions available. The best course of action is to uninstall the package.
Failing to address this vulnerability can lead to unauthorized access to sensitive data and complete system compromise.
Yes, but you will need to implement an alternative logging solution to maintain logging functionality.