Malicious Code Detected in @zalastax/nolb-react-if Package
Summary
MAL-2025-13689: Malicious code in @zalastax/nolb-react-if (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 @zalastax/nolb-react-if package is an npm library designed for React applications, providing conditional rendering capabilities based on certain conditions. It is utilized by developers to enhance user interfaces by rendering components conditionally. However, this package has been identified to contain malicious code, posing a significant risk to applications that rely on it.
Vulnerability Detail
The vulnerability in the @zalastax/nolb-react-if package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @zalastax/nolb-react-if
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 avoid using the @zalastax/nolb-react-if package in your project until a safe version is released. Consider using alternative libraries that provide similar functionality without known vulnerabilities.
Conclusion
The discovery of malicious code in the @zalastax/nolb-react-if package highlights the importance of vigilance in managing open-source dependencies. Users are urged to remove the package and monitor for updates or alternatives to ensure the security of their applications.
See every vulnerability recorded for @zalastax/nolb-react-if →
FAQ
The malicious code can lead to unauthorized access and potential data breaches in applications that utilize this package.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
It is recommended to remove the @zalastax/nolb-react-if package immediately and look for alternative solutions.
As of now, there is no patched version available. Keep an eye on the official repository for any updates.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to their latest versions.