AI agent discovers long-hidden flaw
Veria Labs found a critical-severity flaw in the XRP Ledger payment engine. This bug existed in the code since 2015. The vulnerability allowed an attacker to create XRP from nothing. Cayden Liao, the security co-founder at Veria Labs, discovered the bug using an AI agent. Ripple paid Veria the program’s top $250,000 bounty for this finding. Liao said this payment is the largest ever paid for a vulnerability discovered entirely by an AI agent. The discovery happened on September 22 when Veria reported the bug.
The mechanics of the minting exploit
The vulnerability affected how the engine totals a payment that fills many order book offers at once. The software lacked an overflow check for these sums. A large enough total wrapped around to a small number. The attacker could have set up a few hundred accounts, had each of them list a tiny fraction of a token for sale in exchange for an enormous amount of XRP, and closed all the sales with one single payment. Each seller wallet would have received its payment in full. The buyer wallet would have been charged only a few hundred drops plus the fee.

The attack could not happen by accident. It required hundreds of offers priced in a way no real trader would use, followed by a payment built specifically to consume them all at once. An attacker would only need a few hundred XRP to open the necessary accounts. Most of that XRP could be recovered, alongside the transaction fees.
| Metric | Data |
|---|---|
| Bug Origin Year | 2015 |
| Bounty Amount | $250,000 |
| Exploit Transaction Value | 18 trillion XRP |
| Total XRP Supply Cap | 100 billion XRP |
| Exploit Magnitude | 184 times total supply |
| Reported Date | September 22 |
| Fix Deployment Date | September 25 |
| Software Version | xrpld 3.4.1 |
| Validator Support Threshold | >80% |
| Coldcard BTC Theft | 1,367 BTC |
Mathematical scale of the vulnerability
The scale of the potential theft reached astronomical proportions. One single exploit transaction on the XRP Ledger could have created about 18 trillion XRP. This amount exceeds the 100 billion XRP total supply by 184 times. The total supply of XRP shrinks slightly as transaction fees burn. Liao suspected that no one caught this vulnerability because it chains together two bugs that would be low severity on their own.
The network runs a check after every transaction to ensure no new XRP appeared. This check relied on the miscounted total and missed the minting. A separate limit on how much XRP a single account can receive also failed to trigger. The attack spread the XRP across hundreds of different accounts to bypass this restriction.
Implementation of the emergency fix
Veria reported the bug on September 22. RippleX shipped a fix in xrpld version 3.4.1 on September 25. More than 80% of validators on the default Unique Node List ran the fix that day. Rule changes on the XRP Ledger normally go through an amendment process. This process requires support from more than 80% of the network’s trusted validators over a period of two weeks. This bug fix took effect as each server upgraded, which was a first in more than 10 years of amendments. A normal release would have shown attackers where the bug was for weeks before the fix switched on.
A secondary issue in the Batch feature
The release also patched a separate bug in Batch. This feature had not gone live when the flaw was found. An attacker does not gain anything on-chain from the Batch bug. The payoff is a permanently malformed record and the chance to break off-chain indexers, explorers, and SDKs. Both Batch and its fix activated on Friday. Servers on older versions can no longer stay in sync.
Controversy over closed-source deployment
The source code for the xrpld 3.4.1 update appeared about two weeks after the binaries. Justin Bons, the founder of Cyber Capital, wrote on X that XRP ran closed-source code for those two weeks. The two-week delay in publishing the source code for the 3.4.1 update after the binaries released shows a disappointing lack of transparency. Mayukha Vadarire, a RippleX engineer, replied on Saturday that AI has changed things. Vadarire stated that a team cannot sneak a critical bug patch into a routine public release process because attackers would spot it and reverse-engineer it immediately.
J. Ayo Akinleye, the Head of Engineering at RippleX, said the team would expand AI-assisted bug hunting and formal verification. He noted that AI is changing how quickly vulnerabilities are discovered. You already understand how an order book works, so the mechanics of this overflow error should appear straightforward.
AI-driven security in the current landscape
This incident joins a series of long-hidden crypto security flaws surfaced with AI help since July. A Coldcard wallet bug led to the theft of at least 1,367 BTC. Other vulnerabilities in Core Lightning forced bitcoin node operators to disconnect. AI is changing the speed at which these flaws surface.
Will the industry move toward mandatory AI-driven audits to prevent such decade-long vulnerabilities from remaining hidden?
