Malicious Code Vulnerability in sajarilib: A Threat to npm Users

sajarilib Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6652: Malicious code in sajarilib (npm). Affects sajarilib versions 3.0.0 – 9.1.0. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback