Malicious Code Vulnerability in sajarilib: A Threat to npm Users
Summary
MAL-2025-6652: Malicious code in sajarilib (npm). Affects sajarilib versions 3.0.0 – 9.1.0. 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
sajarilib is an npm package designed for specific functionalities within JavaScript applications, providing developers with essential tools and libraries. However, it has recently been identified as containing malicious code, which poses a significant risk to users who integrate it into their projects. The affected versions include 3.0.0, 9.0.0, and 9.1.0, making it crucial for developers to be aware of this vulnerability.
Vulnerability Detail
The vulnerability in sajarilib arises from the inclusion of malicious code that can compromise the security of applications utilizing this package. Originating from a report by ReversingLabs, this issue can lead to unauthorized access, data breaches, or other malicious activities within affected systems. The technical aspects of this vulnerability involve the execution of harmful scripts that can manipulate or steal sensitive information from users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sajarilib
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 sajarilib package from your project until a secure version is confirmed. You can do this by executing: npm uninstall sajarilib. This will prevent any potential exploitation of the vulnerability while you assess alternative packages or wait for a fix.
Conclusion
The discovery of malicious code in sajarilib presents a serious risk to developers using this npm package. It is essential to update to the latest version or remove the package to safeguard your applications. Utilizing tools like Vulert can help monitor for vulnerabilities effectively.
See every vulnerability recorded for sajarilib →
FAQ
sajarilib is an npm package that provides various functionalities for JavaScript applications, but it has been found to contain malicious code.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Simply upload your package-lock.json file to check for vulnerabilities.
The affected versions of sajarilib include 3.0.0, 9.0.0, and 9.1.0.
If immediate updates are not feasible, consider removing the package from your project as a temporary measure to mitigate risks.
Detailed information can be found in the vulnerability report by ReversingLabs, which outlines the specifics of the malicious code in sajarilib.