@bitwardne/jslibnpm
Advisory published Updated
@bitwardne/jslib is a confirmed malicious npm package (MAL-2026-17694) that typosquats a legitimate package to trick installs (malicious version 1.1.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @bitwardne/jslib (npm)
What this malware does
Package @bitwardne/jslib is a one-character typosquat of the @bitwarden scope. Its package.json declares a preinstall lifecycle script of the form curl -L <url> | node, which fetches a remote payload and pipes it directly into the Node interpreter on the installer's host at npm install time. The URL in this tarball is empty, but the construction is unambiguous remote-code-execution scaffolding — any value placed at that URL would be executed on every installer with no verification, no pinning, and no integrity check. The shipped index.js is a 4-line stub that only re-requires four unrelated utilities, so the manifest's preinstall is the entire functional surface of the package.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for @bitwardne/jslib (version 1.1.0).
If you installed it — respond
@bitwardne/jslib is a typosquat — you almost certainly intended a legitimately-named package. Remove @bitwardne/jslib, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If @bitwardne/jslib was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @bitwardne/jslib-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.