Critical Malicious Code Vulnerability in xrpl-api Package
Summary
MAL-2025-191467: Malicious code in xrpl-api (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The xrpl-api package is a JavaScript library designed for interacting with the XRP Ledger, enabling developers to build applications that can send, receive, and manage XRP transactions. This package is widely used in the cryptocurrency ecosystem for its ease of use and comprehensive functionality. However, it has recently been identified as containing malicious code, posing significant security risks to any system utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the xrpl-api package. This code can compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code means that systems running this package should be considered fully compromised, and there is no guarantee that simply removing the package will eliminate all traces of the malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall xrpl-api
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, ensure that you do not run any applications that depend on the xrpl-api package until it has been removed and all sensitive information has been secured. Additionally, consider using alternative libraries that do not have known vulnerabilities.
Conclusion
The discovery of malicious code within the xrpl-api package poses a significant threat to users and systems utilizing it. Immediate action is required to remove the package and secure any sensitive information. Regular monitoring for vulnerabilities, such as through tools like Vulert, is recommended to maintain the security of your applications.
See every vulnerability recorded for xrpl-api →
FAQ
Immediately remove the xrpl-api package and rotate any sensitive information stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Currently, there is no patched version available. The best course of action is to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive information, potential data breaches, and complete system compromise.
While not all packages in the ecosystem are compromised, it is essential to review and monitor them regularly for vulnerabilities, especially those that are widely used.