On 21 April 2025 an attacker phished the npm credentials of a Ripple employee who maintains xrpl, the official JavaScript library for the XRP Ledger, and published five malicious versions that sent wallet seeds, mnemonics and private keys to an attacker-controlled domain. Anyone who ran xrpl 4.2.1 through 4.2.4 or 2.14.2 should treat every key handled by it as compromised, move funds to a new wallet and upgrade to 4.2.5 or 2.14.3.
| Disclosed | April 22, 2025 |
|---|---|
| Earliest known activity | April 21, 2025 |
| Affected | xrpl, Ripple, npm |
| Type | Supply chain |
| Status | Resolved |
| CVE | CVE-2025-32965 |
What was exposed
Two kinds of credential. The maintainer's npm credentials, captured by phishing, let the attacker publish directly to npm and skip the project's pull-request review; Ripple says no GitHub repository was touched. For users, Aikido found a function called checkValidityOfSeed wired into wallet creation and import methods (generate, fromSeed, fromMnemonic, fromEntropy and the constructor), which posted seeds, mnemonics and private keys to the attacker's domain in an HTTP header. The advisory also tells users to rotate any other secrets used with affected systems. Ripple says the XRP Ledger network and codebase were not affected.
Am I affected?
You are affected if an application, script, wallet or CI job installed xrpl 4.2.1, 4.2.2, 4.2.3, 4.2.4 or 2.14.2, which were live from the evening of 21 April to midday on 22 April 2025 UTC, and then created or loaded a wallet with it. Check lockfiles for those versions and look in network logs for requests to 0x9c[.]xyz. Services that only read ledger data without handling keys were at lower risk, but the advisory says to rotate any private keys or secrets used with affected systems.
What to do now
- Stop using the affected versions immediately and upgrade to
xrpl4.2.5 or 2.14.3. - Treat every seed, mnemonic and private key the affected code handled as compromised. Move funds to a new wallet generated on a clean system.
- Use the XRP Ledger's regular key pair feature to rotate keys, and disable any master key that may have been exposed, as the advisory recommends.
- Rotate other secrets that were present on the affected systems.
- Block and search logs for the domain
0x9c[.]xyz.
Keys to rotate
Guides to the credentials this incident put at risk:
Timeline
- Ripple says a maintainer is phished for credentials at 20:39 UTC; five malicious versions are published to npm between 20:46 and 21:49 UTC. Source
- Aikido Security alerts Ripple and publishes its analysis of the backdoor. Source
- Between 08:14 and 12:34 UTC the affected versions are deprecated and fixed releases 4.2.5 and 2.14.3 are published. Advisory GHSA-33qr-m49q-rxfx (CVE-2025-32965, CVSS v4 9.3) is published. Source
- Ripple publishes its disclosure report, saying no GitHub repositories were compromised and that the maintainer was removed and 2FA enabled for all publishers. Source
Indicators
From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.
xrplversions 4.2.1, 4.2.2, 4.2.3, 4.2.4 and 2.14.2, published without matching GitHub releases.- A function named
checkValidityOfSeedin the package code. - Outbound HTTP POST requests to
0x9c[.]xyzwith anad-referralheader.
What this changes for credential handling
- A phished password was enough to publish. BotPassword fills credentials only on the exact domain they belong to, and support for phishing-resistant passkeys is planned for v1.
Frequently asked questions
Am I affected by the xrpl incident?
You are affected if an application, script, wallet or CI job installed xrpl 4.2.1, 4.2.2, 4.2.3, 4.2.4 or 2.14.2, which were live from the evening of 21 April to midday on 22 April 2025 UTC, and then created or loaded a wallet with it. Check lockfiles for those versions and look in network logs for requests to 0x9c[.]xyz. Services that only read ledger data without handling keys were at lower risk, but the advisory says to rotate any private keys or secrets used with affected systems.
What was exposed in the xrpl incident?
Two kinds of credential. The maintainer's npm credentials, captured by phishing, let the attacker publish directly to npm and skip the project's pull-request review; Ripple says no GitHub repository was touched. For users, Aikido found a function called checkValidityOfSeed wired into wallet creation and import methods (generate, fromSeed, fromMnemonic, fromEntropy and the constructor), which posted seeds, mnemonics and private keys to the attacker's domain in an HTTP header. The advisory also tells users to rotate any other secrets used with affected systems. Ripple says the XRP Ledger network and codebase were not affected.
Which keys should I rotate?
Rotate any npm credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.
Other supply-chain compromises
- LiteLLM 1.107.0 on PyPI and Docker carried a credential stealer after a leaked master key 2026-10-21
- tensorlake 0.5.144 on npm shipped a Shai-Hulud variant with a wipe-on-revoke dead-man's switch 2026-10-08
- keyv, flat-cache and cache-manager npm releases carried a CI-secret stealer with a revocation trap 2026-08-04
- 32 @redhat-cloud-services npm packages compromised after a VS Code extension hijacked a GitHub account 2026-06-01
- 14 typosquatted OpenSearch and DevOps npm packages stole AWS, Vault, GitHub Actions and npm secrets 2026-05-28
- Nx Console 18.95.0 VS Code extension shipped a credential stealer after a TanStack infection 2026-05-18