Malicious Code Vulnerability in @bitwardne/cli Package
Summary
MAL-2026-17693: Malicious code in @bitwardne/cli (npm). Affects @bitwardne/cli versions 1.0.1. 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 @bitwardne/cli package is an npm library that serves as a command-line interface option parser. It is published under a name that closely resembles the well-known Bitwarden brand, which may mislead users into thinking it is a legitimate package. This package has been identified to contain a preinstall lifecycle script that poses a significant security risk.
Vulnerability Detail
The vulnerability originates from a preinstall lifecycle script in the package.json file that is designed to execute remote code during the npm install process. Although the URL in the script is currently empty, it represents a potential remote code execution (RCE) threat. If an attacker were to populate this URL with malicious content, it could lead to unauthorized code execution on the user's machine, compromising system integrity and security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @bitwardne/cli
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, avoid using the @bitwardne/cli package until a secure version is released. Regularly monitor the package repository for any updates or patches that may address this vulnerability.
Conclusion
The @bitwardne/cli package contains a serious vulnerability that can lead to remote code execution. Users are advised to uninstall the package and monitor for updates. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for @bitwardne/cli →
FAQ
The vulnerability involves a preinstall script that can execute remote code, posing a risk of unauthorized access and control over the user's system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Currently, there is no patched version available. It is advisable to uninstall the package until a secure version is released.
If you have installed the package, you should uninstall it immediately using the command npm uninstall @bitwardne/cli.
Vulert uses the package-lock.json file to monitor and alert users in real-time for open-source vulnerabilities, ensuring that your applications remain secure.