The XRP Ledger has fixed a flaw that could have let an attacker create about 18 trillion XRP out of nothing in a single transaction. That is roughly 180 times the token's entire 100 billion supply. Part of the flawed code dates back to 2015. Security firm Veria Labs found the bug using an AI-driven system, and it was fixed three days after being reported. It was disclosed publicly on 9 October. RippleX, Ripple's developer arm, says it found no evidence the flaw was ever exploited on a public network.
The episode matters for two reasons. First, XRP's appeal rests partly on a supply that can never grow, and this bug broke that guarantee. Second, the flaw survived years of human audits before an automated tool caught it. That is an uncomfortable precedent for every older blockchain.
How the bug worked
The XRP Ledger has a built-in exchange where accounts post offers to swap one token for another. According to CoinDesk's account of the security report, an attacker could have set up hundreds of accounts. Each would offer a tiny amount of a token in return for an unusually large amount of XRP. A single payment would then buy every offer at once.
The total XRP owed would trigger an integer overflow: the number was too large for the software to store correctly, so it came out wrong. The selling accounts would be paid in full while the buying account was charged only a fraction. The difference was XRP that had never existed.
A second weakness made the attack work. After every transaction, the ledger checks that no new XRP has appeared. CryptoSlate reports that this safeguard used the same flawed arithmetic, so it would have missed the new coins. CoinDesk adds that a separate limit on how much XRP one account can receive would not have triggered either, because the XRP was spread across hundreds of accounts.
The attack was cheap. It needed only a few hundred XRP, mostly in reserves the attacker could get back, plus ordinary transaction fees. The payment-engine code dates to 2015, and the supply safeguard was added in 2017.
Disclosure, verification and reward
Cayden Liao, Veria's founder, and the firm's AI system reported the flaw on 22 September. Veria's tool had analysed the ledger's core server software, built a working exploit and shown it running on a local test network. RippleX engineers reproduced the attack on their own server and confirmed that the new XRP could be spent in later transactions.
RippleX says no unauthorised XRP was created and no funds were lost. Veria received a $250,000 bounty, the programme's maximum. Liao called it the largest known reward for a vulnerability found entirely by an AI agent.
The two outlets describe the stakes differently. CryptoSlate uses Veria's 18 trillion figure and Liao's warning that the bug threatened XRP's roughly $94 billion market value. CoinDesk's headline puts the possible damage at "billions of dollars" in XRP and stresses the fixed supply cap that institutions on the network depend on.
An emergency fix outside normal governance
The fix itself was unusual. Normally, a change to how the ledger processes transactions needs support from more than 80% of trusted validators for two weeks in a row. Validators are the servers that agree on which transactions are valid.
Developers decided that waiting for that vote would leave the network exposed. Because the software is open source, publishing the fix could also have shown attackers where to look. So RippleX, the XRP Ledger Foundation and validators coordinated an emergency upgrade. The protection took effect immediately on servers running version 3.4.1, released on 25 September.
The patch first went out as compiled programs, without its source code, to make it harder for anyone to work backwards to the bug. CoinDesk notes that the release did not say what it fixed. According to the disclosure, this was the first deliberate bypass of the activation process for a transaction-processing change in more than a decade.
That approach carried its own risk. Servers on different versions could disagree about whether an attack transaction was valid, which could split the network or halt it. Developers judged a temporary outage better than fake XRP entering circulation. By 25 September, more than 80% of validators on the default trusted list had upgraded, which greatly reduced that risk.
Why audits missed it, and what AI changes
The XRP Ledger is not a lightly reviewed codebase. Liao said it had been through more than a dozen audits and security contests since 2024, including one with a $550,000 prize pool. Its bug bounty programmes had paid out more than $1 million. The combined flaw still went unnoticed.
CoinDesk puts the case in a wider pattern. Since July, AI tools have helped uncover several long-hidden crypto bugs. They include a Coldcard wallet flaw linked to the theft of at least 1,367 BTC, and vulnerabilities that forced Core Lightning to tell bitcoin node operators to disconnect.
The same tools help both sides. J. Ayo Akinyele, RippleX's head of engineering, said AI is speeding up vulnerability discovery and putting pressure on developers to find weaknesses before attackers do. Vet, an XRP Ledger Foundation contributor, warned that more capable AI systems could make obscure bugs easier to exploit.
RippleX's response
Akinyele said the incident showed the need to revisit long-held assumptions about the network's design. RippleX plans to use more AI-assisted bug hunting and more attack-style testing. It will also look harder at older components, including the payment engine, consensus mechanism and peer-to-peer networking.
It also plans to speed up formal verification, which uses mathematics to prove that software meets specific security properties. That work builds on existing verification of the ledger's Lending Protocol and Single Asset Vault, together with CommonPrefix and the XRP Ledger Foundation.
There is one immediate process change. Security findings already marked as resolved must now be retested against release candidates before they are formally closed.
What to watch
- Software minimums: Vet said version 3.4.1 is now the minimum required, after separate Batch-related amendments activated on 9 October. Any servers still on older versions are the main leftover risk.
- Legacy code reviews: Watch for results from RippleX's expanded AI-assisted and attack-style testing of the payment engine, consensus and networking code.
- Formal verification: Watch whether verification work extends beyond the Lending Protocol and Single Asset Vault into the older core components where this bug sat.
- Governance precedent: The emergency bypass worked this time. Watch whether validators and the foundation set formal rules for when the normal amendment vote can be skipped.
- Other chains: This is the latest in a string of AI-assisted discoveries since July. Other older blockchains may face the same kind of scrutiny, from researchers and from attackers.
