CVE-2025-32965 Details
Description
xrpl.js is a JavaScript/TypeScript API for interacting with the XRP Ledger in Node.js and the browser. Versions 4.2.1, 4.2.2, 4.2.3, and 4.2.4 of xrpl.js were compromised and contained malicious code designed to exfiltrate private keys. Version 2.14.2 is also malicious, though it is less likely to lead to exploitation as it is not compatible with other 2.x versions. Anyone who used one of these versions should stop immediately and rotate any private keys or secrets used with affected systems. Users of xrpl.js should pgrade to version 4.2.5 or 2.14.3 to receive a patch. To secure funds, think carefully about whether any keys may have been compromised by this supply chain attack, and mitigate by sending funds to secure wallets, and/or rotating keys. If any account's master key is potentially compromised, disable the key.
A supply chain attack has been identified in the official xrpl.js NPM package, which is used to interact with the XRP Ledger. Malicious code was introduced in versions 4.2.1, 4.2.2, 4.2.3, 4.2.4, and 2.14.2. This code is designed to exfiltrate private keys from users, potentially compromising their cryptocurrency wallets. The attack was executed by inserting a backdoor that activated upon the creation of a Wallet object, stealing private keys as soon as they were generated or imported.
Users should immediately upgrade to xrpl.js versions 4.2.5 or 2.14.3, and rotate any private keys or secrets used with affected systems. To disable a potentially compromised master key, follow the instructions available on the XRP Ledger's official website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 22, 2025CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/XRPLF/xrpl.js/security/advisories/GHSA-33qr-m49q-rxfx | [email protected] | AdvisoryRemedyVendor |
| https://www.aikido.dev/blog/xrp-supplychain-attack-official-npm-package-infected-with-crypto-stealing-backdoor | [email protected] | ExploitRemedyTechnical Analysis |
| https://xrpl.org/docs/tutorials/how-tos/manage-account-settings/assign-a-regular-key-pair | [email protected] | Technical DescriptionVendor |
| https://xrpl.org/docs/tutorials/how-tos/manage-account-settings/disable-master-key-pair | [email protected] | Technical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-506 | Embedded Malicious Code | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| XRPLF xrpl.js | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 22, 2025 | New CVE Received | [email protected] |
Volerion