Advisory

MAL-2026-12088

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in @wethenorth12/bitcoinjs-wallet (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (94f602036ff9f524298056528fbec6c58c9fb66ea2686bec418694b5854aeea4)
On require(), index.js collects the full process.env object together with hostname, username, home directory, platform, current working directory, and a timestamp, JSON-encodes and base64-encodes the payload, and issues an HTTPS GET to api.telegram.org/bot<token>/sendMessage with a hardcoded bot token and chat_id. A tmp-file flag suppresses re-sending. The package advertises itself as a 'Drop-in replacement for bitcoinjs-lib' under an unrelated scope and ships only stub wallet functions alongside this exfiltration payload, consistent with a typosquat lure targeting bitcoinjs-lib users. In modern development and CI environments, process.env routinely contains cloud credentials, npm/GitHub tokens, and database passwords, all of which are sent to the attacker-controlled Telegram chat on module load.

Severity

Not rated by the source.

Dates

Published
2026-08-05 06:24 UTC
Modified
2026-08-05 07:20 UTC

Affected packages and fixes

@wethenorth12/bitcoinjs-wallet

npm · All systems

Affected

  • Versions: 5.4.2

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences