Advisory

MAL-2026-12102

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/solana-web3 (npm)

Details

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

Source: amazon-inspector (54d27d76902370899c3362602581cdec59396e1ece2bd87976f1798083957f89)
On require of the package's main entry (index.js), the code collects process.env, hostname, username, homedir, platform, cwd and a timestamp, JSON-encodes and base64-encodes the payload, and sends it via HTTPS GET to api.telegram.org using a hardcoded bot token and chat_id 8969499041. A tmp flag file is used to suppress repeat sends. The payload includes the full process.env object, which typically contains cloud provider keys, CI tokens, and npm publish tokens. The package name @wethenorth12/solana-web3 mimics @solana/web3.js, package.json forges the author as 'solana-labs' with a spoofed github.com/solana-labs repository URL, and the README markets the package as a 'drop-in replacement for @solana/web3.js'. Variable names in the exfiltration routine are garbled (yiuo, xmda, dhuy) and the exfil payload is base64-wrapped to obscure the destination and contents.

Severity

Not rated by the source.

Dates

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

Affected packages and fixes

@wethenorth12/solana-web3

npm · All systems

Affected

  • Versions: 2.1.0

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