CVE-2025-32965
xrpl.js is a JavaScript/TypeScript API for interacting with the XRP …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/XRPLF/xrpl.js/security/advisories/GHSA-33qr-m49q-rxfx
- www.aikido.dev/blog/xrp-supplychain-attack-official-npm-package-infected-with-crypto-steal
- xrpl.org/docs/tutorials/how-tos/manage-account-settings/assign-a-regular-key-pair
- xrpl.org/docs/tutorials/how-tos/manage-account-settings/disable-master-key-pair
- nvd.nist.gov/vuln/detail/CVE-2025-32965
- github.com/advisories/GHSA-33qr-m49q-rxfx
- nvd.nist.gov/vuln/detail/CVE-2025-32965
- cve.org/CVERecord?id=CVE-2025-32965
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.