Malicious Code Detected in @zalastax/nolb-json8 Package
Summary
MAL-2025-12126: Malicious code in @zalastax/nolb-json8 (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-json8 package is an npm library designed for JSON manipulation and data handling. It offers various functionalities for developers to easily work with JSON data structures. However, recent findings have revealed that this package contains malicious code, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the @zalastax/nolb-json8 package. This code can potentially compromise the security of applications that depend on this library, leading to unauthorized access, data breaches, or other malicious activities. The issue is particularly concerning as it affects all versions starting from the initial release, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @zalastax/nolb-json8
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 avoid using the @zalastax/nolb-json8 package and implement your own JSON handling functions or utilize other trusted libraries that provide similar capabilities.
Conclusion
The discovery of malicious code in the @zalastax/nolb-json8 package highlights the importance of vigilance in managing open-source dependencies. Users are urged to uninstall the affected package and seek alternatives to safeguard their applications.
See every vulnerability recorded for @zalastax/nolb-json8 →
FAQ
The malicious code can perform unauthorized actions within applications, 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.
Immediately uninstall the @zalastax/nolb-json8 package and consider using a secure alternative for JSON manipulation.
Yes, there are several reputable JSON handling libraries available on npm, such as 'lodash' or 'json5', which do not have known vulnerabilities.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest versions to mitigate risks.