@zzzcrypto/xrp-lib (npm) · Malicious Code
Affects @zzzcrypto/xrp-libSource GCVE Database
Malicious package : remove @zzzcrypto/xrp-lib and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 22:17 UTC
Malicious package
Published to npm · OSV MAL-2026-13215
What to do
Remove @zzzcrypto/xrp-lib from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@zzzcrypto/xrp-lib | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @zzzcrypto/xrp-lib version 2.14.0 impersonates the legitimate xrpl library and contains malicious code that exfiltrates sensitive environment information. Upon requiring the package, it collects system details including hostname, username, home directory, current working directory, and the entire process environment variables. This data is serialized, encoded, and sent via a GET request to a hardcoded Telegram Bot API endpoint. The package uses a temporary file flag to avoid repeated transmissions. This behavior risks exposure of sensitive tokens and credentials commonly stored in environment variables, such as cloud tokens, npm publish tokens, database URLs, and API keys.