{"answers":{"affected":"4 open source packages ship an affected version, including xrpl.","exploited":"There is no known exploitation of CVE-2025-32965 in the wild and no public exploit code.","fix":"Upgrade xrpl to a fixed version for your release line: 2.14.3 or 4.2.5.","what":"CVE-2025-32965 is a critical vulnerability in XRPLF xrpl.js, published on 22 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-32965 and fix it if it is affected.\n\nWhat it is: CVE-2025-32965 is a critical vulnerability in XRPLF xrpl.js, published on 22 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-32965 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- xrpl (npm): affected from 2.14.2; fixed in 2.14.3\n- xrpl (npm): affected from 2.14.2; fixed in 2.14.3\n- xrpl (npm): affected from 4.2.1; fixed in 4.2.5\n- xrpl (npm): affected from 4.2.1; fixed in 4.2.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-32965/ (Markdown: https://insights.sbomify.com/CVE-2025-32965/index.md)","id":"CVE-2025-32965","markdown":"https://insights.sbomify.com/CVE-2025-32965/index.md","name":"CVE-2025-32965","record":{"aliases":["GHSA-33qr-m49q-rxfx"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript XRPL library","requires_auth":"none","summary":"Malicious code in compromised xrpl.js versions exfiltrates private keys, requiring immediate upgrade and key rotation to prevent account takeover.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-506","name":"Embedded Malicious Code"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-04-23","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-04-23T09:26:08Z","kind":"github_poc","ref":"https://github.com/yusufdalbudak/CVE-2025-32965-xrpl-js-poc","stars":0,"title":"CVE Kodu: CVE-2025-32965  Zafiyet Türü: Supply Chain Attack (CWE-506: Embedded Malicious Code)  Hedef: xrpl.js kütüphanesinin 4.2.1–4.2.4 ve 2.14.2 versiyonları  Etki: Kullanıcının cüzdan seed/secret verisinin saldırgana gönderilmesi"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Compromised xrpl.js versions 4.2.1, 4.2.2, 4.2.3, 4.2.4, and 2.14.2","id":"CVE-2025-32965","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"supply_chain","year":"2025"},"n_packages":4,"n_references":4,"next":{"headline":"Dataease H2 JDBC Connection Remote Code Execution","id":"CVE-2025-32966"},"packages":[{"ecosystem":"npm","fixed":["2.14.3"],"introduced":["2.14.2"],"last_affected":[],"package":"xrpl","purl":null,"source":"GHSA-33qr-m49q-rxfx"},{"ecosystem":"npm","fixed":["2.14.3"],"introduced":["2.14.2"],"last_affected":[],"package":"xrpl","purl":"pkg:npm/xrpl","source":"GHSA-33qr-m49q-rxfx"},{"ecosystem":"npm","fixed":["4.2.5"],"introduced":["4.2.1"],"last_affected":[],"package":"xrpl","purl":null,"source":"GHSA-33qr-m49q-rxfx"},{"ecosystem":"npm","fixed":["4.2.5"],"introduced":["4.2.1"],"last_affected":[],"package":"xrpl","purl":"pkg:npm/xrpl","source":"GHSA-33qr-m49q-rxfx"}],"prev":{"headline":"Missing authorization in ManageWiki","id":"CVE-2025-32964"},"products":["xrpl.js"],"published":"2025-04-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["XRPLF"]},"summary":"Malicious code in compromised xrpl.js versions exfiltrates private keys, requiring immediate upgrade and key rotation to prevent account takeover.","url":"https://insights.sbomify.com/CVE-2025-32965/"}