Malicious Code Detected in @zalastax/nolb-hapi-d Package
Summary
MAL-2025-11927: Malicious code in @zalastax/nolb-hapi-d (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-hapi-d package is an npm library designed to facilitate the integration of Hapi.js applications with load balancers. It provides essential functionalities for managing requests and responses in a scalable manner. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the @zalastax/nolb-hapi-d package. This code can potentially compromise the security of applications, leading 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 risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @zalastax/nolb-hapi-d
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, consider using alternative packages that provide similar functionality without the associated risks. Review your application's dependencies and ensure that you are not relying on the compromised package until a secure version is released.
Conclusion
The discovery of malicious code in the @zalastax/nolb-hapi-d package highlights the importance of vigilance in managing open-source dependencies. Users must take immediate action to protect their applications by uninstalling the affected package and monitoring for updates.
See every vulnerability recorded for @zalastax/nolb-hapi-d →
FAQ
The malicious code can perform unauthorized actions within the application, potentially leading to data theft or system compromise.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Currently, there is no patched version available. Users are advised to uninstall the package until a secure version is released.
If immediate removal is not possible, consider implementing strict access controls and monitoring for unusual activity in your application.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about security advisories related to the packages you use.