XRPLF xrpl.js
Compromised xrpl.js versions 4.2.1, 4.2.2, 4.2.3, 4.2.4, and 2.14.2
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.2.1, < 4.2.5
- = 2.14.2
Fixed in 4.2.5
Mitigation
Upgrade xrpl.js to 4.2.5 or later.
References
- Vendor advisory github.com/XRPLF/xrpl.js/security/advisories/G…
Timeline
Days relative to CVE publicationFirst public PoC 13 h after publication; not in CISA KEV. First PoC: yusufdalbudak/CVE-2025-32965-xrpl-js-poc (created 23 Apr 2025, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| yusufdalbudak/CVE-2025-32965-xrpl-js-poc | 23 Apr 2025 +13 h | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /xcm
- Content-Type
text/plain- Ports
- 3000
- PoC User-Agent
ad-refferal- Seen in
- 1 repo: yusufdalbudak/CVE-2025-32965-xrpl-js-poc
- Evidence
- yusufdalbudak/CVE-2025-32965-xrpl-js-poc/fake_xrpl.js:2
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/xcm(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2025-32965 XRPLF xrpl.js exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/xcm"; reference:url,poc.griffinguard.io/cve/CVE-2025-32965; classtype:web-application-attack; sid:9605252; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: XRPLF xrpl.js exploit attempt (CVE-2025-32965)
id: gg-pocmon-cve-2025-32965-9605252
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-32965. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-32965
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/xcm'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.32965