Critical Remote Code Execution Vulnerability in @bitwardne/jslib Package

@bitwardne/jslib Updated 08 Oct 2026

Summary

08/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17694: Malicious code in @bitwardne/jslib (npm). Affects @bitwardne/jslib versions 1.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

The @bitwardne/jslib package is a JavaScript library available on npm, which is a one-character typosquat of the legitimate @bitwarden scope. This package is designed to be installed via npm, and it is intended to provide utility functions. However, it has been found to contain malicious code that poses a significant security risk to users who install it.

Vulnerability Detail

The vulnerability originates from the package's preinstall lifecycle script, which executes a command to fetch and run a remote payload via curl. This script lacks any verification or integrity checks, allowing an attacker to execute arbitrary code on the installer's machine. The empty URL in the package's tarball indicates that any value placed there would lead to remote code execution, making it a severe security threat.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall @bitwardne/jslib

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

There are no effective workarounds for this vulnerability due to the nature of the malicious code. The best course of action is to avoid using the @bitwardne/jslib package altogether.

Conclusion

The @bitwardne/jslib package contains a critical vulnerability that allows for remote code execution due to its malicious preinstall script. Users are advised to uninstall this package immediately and monitor their applications for any potential impacts. Utilizing tools like Vulert can help in identifying vulnerabilities in your software.

See every vulnerability recorded for @bitwardne/jslib →

Share this vulnerability

FAQ

A typosquat is a malicious package that mimics the name of a legitimate package with slight variations, often to trick users into installing it.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground at Vulert Scanner without any signup.

If you have installed @bitwardne/jslib, you should uninstall it immediately using the command npm uninstall @bitwardne/jslib.

Yes, if the package is installed in your production environment, it can lead to remote code execution, compromising the security of your application.

Always verify the authenticity of packages before installation. Look for official sources and check the package's integrity to avoid similar issues.

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 @bitwardne/jslib

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