×

“XRP Ledger Addresses Major Bug Following Discovery in XRPL Library.”

Critical Security Flaw in XRP Ledger’s Developer Tools Resolved After Exploit

A significant security vulnerability in the XRP Ledger’s developer toolkit was recently discovered and swiftly patched after a threat actor exploited a stolen developer access token from Node Package Manager (NPM), a platform where developers share code for projects. The flaw, which could have led to severe consequences, was flagged by cybersecurity firm Aikido Security, led by researcher Charlie Eriksen.

Eriksen explained that the attack occurred when a developer’s NPM access token was compromised, allowing the malicious actor to inject harmful code into the toolkit used for building apps compatible with the XRP Ledger. While the method of token theft and the identity of the attacker are still unclear, the security breach raised alarms within the cryptocurrency community.

“This exploit targeted the NPM access token of a developer, allowing attackers to inject dangerous code into the XRP Ledger’s toolkit,” Eriksen wrote in a security update. “The vulnerability, if left unchecked, could have had catastrophic consequences for the ecosystem, as it could have affected many third-party apps relying on the toolkit.”

The issue was isolated to versions of NPM that were used to build XRP Ledger-related applications, with key services such as Xaman Wallet and XRPScan confirming they were not impacted by the flaw. Xaman Wallet reassured its users that their platform was unaffected, emphasizing their commitment to building secure, in-house features.

In a tweet, Robert Kiuru, the CEO of Xaman Wallet, expressed, “The npm vulnerability today is a stark reminder of the importance of knowing the tools you use. At Xaman, we’ve always prioritized security and built everything in-house from day one. Trust comes from transparency and commitment.”

The flaw centered around the “xrpl.js” JavaScript library, a critical tool for interacting with the XRP Ledger. With over 140,000 weekly downloads, the library is widely used by third-party apps and websites, creating the risk of a large-scale supply chain attack. The vulnerability could have allowed attackers to potentially steal private keys and gain unauthorized access to users’ cryptocurrency wallets.

On April 21, Aikido Security’s monitoring system, Aikido Intel, flagged five new versions of the “xrpl” package that contained the malicious code. With these versions already downloaded by numerous applications, the exploit posed a considerable risk to the security of the cryptocurrency ecosystem.

In response to the discovery, the XRP Ledger Foundation acted quickly to mitigate the situation by releasing new versions of the toolkit, deprecating the compromised ones (v4.2.1-4.2.4 and v2.14.2). The Foundation urged developers to immediately upgrade to the safe v4.2.5 version to safeguard their applications.

The XRP Ledger Foundation emphasized that the flaw only affected the “xrpl.js” library and had no impact on the core XRP Ledger code or its GitHub repository. They assured the community that only those who had installed the flawed versions during the brief window of vulnerability were at risk.

Despite the potential for widespread disruption, the swift action taken by the XRP Ledger Foundation helped mitigate the damage and prevent larger-scale exploitation. XRP’s price saw an 8.5% rise in the past 24 hours, alongside a broader market rally, indicating growing confidence in the network’s security and resilience.

The incident underscores the importance of vigilance in the cryptocurrency space, especially when it comes to third-party libraries and tools. Developers using “xrpl.js” are strongly encouraged to update to version 4.2.5 as soon as possible to ensure their applications remain secure and protected from future vulnerabilities.

Share this content:

Copyright © 2025 CoinsNewz