XRP Ledger Bug Patched After 'Serious' Flaw Spotted in XRPL Library


XRP Ledger Experiences Security Breach Addressed by Foundation
Recently, a critical flaw was detected in the XRP Ledger's library, prompting an urgent response. The vulnerability stemmed from unauthorized access using an XRP Ledger developer access token on the Node Package Manager (NPM) platform, where developers exchange code for various projects.
Fortunately, major XRP services like Xaman Wallet and XRPScan remained secure amid the breach. A swift reaction from the XRP Ledger Foundation led to the release of updated versions, advising all users to promptly upgrade to prevent any potential security risks.
Charlie Eriksen from Aikido Security raised concerns after identifying an undisclosed issue within a new toolkit aimed at app development for the XRP Ledger. The illicit modification was made possible by a stolen developer's NPM access token, allowing threat actors to introduce harmful code into recent toolkit versions.
XRP Ledger Bug Patched After 'Serious' Flaw Spotted in XRPL Library
The issue only affects versions of Node Package Manager (NPM), a site where developers share reusable code for projects.
- A threat actor exploited an XRP Ledger developer access token to publish illicit code, potentially causing a catastrophic impact on the network.
- The vulnerability affected specific versions of the Node Package Manager, but major XRP services like Xaman Wallet and XRPScan were unaffected.
- The XRP Ledger Foundation quickly released updated versions of the tool to fix the issue, urging projects to upgrade to the latest version immediately.
While acknowledging the severity of the situation, Eriksen shed light on the specific impact limited to applications that installed compromised versions during a specific timeframe. To tackle this threat effectively, projects leveraging xrpl.js were advised to update to v4.2.5 without delay.

This incident highlighted how crucial it is for crypto ecosystems to maintain vigilance against supply chain attacks such as these. Despite potential risks posed by vulnerabilities in third-party libraries like xrpl.js, it's reassuring that core components of platforms like the XRP Ledger itself remain unaffected.
As developments unfolded swiftly post-discovery of this security loophole, market reactions showcased an 8.5% price surge in XRP over 24 hours alongside a broader uptrend observed across various digital assets.
This flaw could let attackers steal users’ private keys, possibly accessing their crypto wallets in theory.
"At 21 Apr, 20:53 GMT+0, our system, Aikido Intel started to alert us to five new package version of the xrpl package. It is the official SDK for the XRP Ledger, with more than 140.000 weekly downloads," Eriksen said in a security update.
"This package is used by hundreds of thousands of applications and websites making it a potentially catastrophic supply chain attack on the cryptocurrency ecosystem," Eriksen noted.

He added that only third-party apps or services that installed the flawed versions during a brief period could be at risk.
"To clarify: This vulnerability is in xrpl.js, a JavaScript library for interacting with the XRP Ledger. It does NOT affect the XRP Ledger codebase or Github repository itself. Projects using xrpl.js should upgrade to v4.2.5 immediately," the foundation posted separately.
A JavaScript library is a collection of pre-written code to simplify tasks in web development. A GitHub repo is an online storage space for a project's code, files, and history, hosted on GitHub.
XRP prices are up 8.5% in the past 24 hours alongside a broader market jump.