Malicious code in @zzzcrypto/xrp-lib (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-13215
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (781049b09ea0edc63ede63c8c559e3e9a08255982bbe6d18c2e4c0823b4fdf0c) Package impersonates the legitimate xrpl library (README: 'Drop-in replacement for xrpl'; author field 'XRPLF'; repo points to a non-existent XRPLF/xrp-lib). On require, index.js collects hostname, username, home directory, current working directory, and the entire process.env, JSON-serializes and base64-encodes the payload, then transmits it as a GET query parameter to a hardcoded Telegram Bot API endpoint (api.telegram.org, bot id 7231970337, chat_id 8969499041). A temp-file flag suppresses repeat sends. The embedded payload references `@wethenorth12/xrp-lib` while this package is `@zzzcrypto/xrp-lib`, indicating the same code has been republished under multiple scopes. process.env in developer and CI environments routinely holds cloud tokens, npm publish tokens, database URLs, and API keys, which are captured wholesale by this transmission.
- Source published
- 5 Aug 2026 15:32:31 UTC
- Source modified
- 5 Aug 2026 16:49:56 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.