Malicious Code Detected in @zalastax/nolb-react-pg Package
Summary
MAL-2025-13714: Malicious code in @zalastax/nolb-react-pg (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-pg package is a Node.js library designed for integrating React applications with PostgreSQL databases. It provides developers with tools to streamline database interactions within their React components. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the @zalastax/nolb-react-pg package. This code can potentially compromise the security of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The issue affects all versions starting from 0, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @zalastax/nolb-react-pg
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, consider removing the @zalastax/nolb-react-pg package from your project until a secure version is released. You can do this by executing: npm uninstall @zalastax/nolb-react-pg.
Conclusion
The @zalastax/nolb-react-pg package has been identified to contain malicious code, posing significant security risks. It is crucial for developers using this package to take immediate action by updating or removing it to safeguard their applications.
See every vulnerability recorded for @zalastax/nolb-react-pg →
FAQ
The malicious code can lead to unauthorized access and potential data breaches in applications using this package.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
Currently, there is no specific patched version mentioned, so it is advisable to monitor the package repository for updates.
As a temporary measure, you can uninstall the package to mitigate the risk until a secure version is available.
Vulert uses package-lock.json to monitor and alert in real-time for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.