Flash Loan Attack
Last Updated: November 16, 2026
A flash loan attack is a DeFi (Decentralized Finance) exploit in which an attacker borrows a large sum through a flash loan, uses it to manipulate prices or abuse a bug in another protocol, and repays the loan in the same transaction, keeping the profit. The whole attack runs on-chain within a single block and can drain the crypto assets held in a pool.
A flash loan needs no collateral because it must be repaid, plus a fee, before the transaction ends. If it is not, the whole transaction is reversed. Aave’s documentation describes flash loans as borrowing for a single block and lists a 0.05% fee on Aave V3. Many users rely on them for legitimate arbitrage, liquidations and collateral swaps.
Attackers instead use the borrowed money to move a price that a target protocol trusts, or to trigger a flaw in its code. Often, the victims are DeFi protocols that have not integrated decentralized oracle systems to keep pricing consistent.
Where and How Does a Flash Loan Attack Occur?
Such attacks happen in DeFi because its protocols are open to anyone and run entirely on smart contracts. Removing middlemen brings benefits, such as resistance to censorship and lower costs. But nobody checks who takes out a flash loan or why, which leaves DeFi venues open to this type of attack.
Most attacks follow the same steps inside one transaction: borrow, move a price or trigger a bug, take out more value than the protocol should allow, repay the loan and keep the rest. Because a smart contract acts only on the data it is given, a price pushed out of line for a moment is enough.
In an attack on the bZx protocol on February 18, 2020, the attacker used borrowed funds to buy the stablecoin sUSD in large amounts, pushing its price on the markets bZx relied on to nearly double. The attacker then posted the overpriced sUSD as collateral to borrow more ETH than it was worth, repaid the loan and kept about $645,000, according to DefiLlama’s hacks database.
Examples of Flash Loan Attack
A few days earlier, on February 14 and 15, 2020, bZx lost about $350,000. The attacker took a flash loan of ETH from dYdX, a lending DApp (decentralized application), used part of it on Compound to borrow WBTC (Wrapped Bitcoin), and used another part on the Fulcrum platform of bZx to open a large leveraged trade that pushed up the price of WBTC on Uniswap.
The attacker then sold the borrowed WBTC on Uniswap at the inflated price, repaid the loan and kept what was left, according to DefiLlama’s description of the attack. Both bZx attacks ran on Ethereum.
Later attacks were far larger. CREAM Finance lost about $130 million on October 27, 2021, when an attacker used flash loans to manipulate the prices its lending market relied on. Beanstalk lost about $181 million on April 17, 2022, after an attacker flash-borrowed more than $1 billion to gain two-thirds of its governance votes and pass a proposal that drained the protocol.
Euler Finance lost about $197 million on March 13, 2023, when an attacker used a flash loan to exploit its donateToReserves function. DefiLlama’s hacks database records the funds as returned.
Flash Loan Attacks in 2026
Flash loans still show up in many exploits, but most are now small. Of the incidents in DefiLlama’s hacks database, read on November 16, 2026, 44 logged so far in 2026 mention a flash loan in their description, with about $20 million taken in total. In 2021, 30 such incidents took about $395 million.
The largest this year were X100, which lost about $4.75 million on October 24, 2026, after an attacker used flash-loan-funded tokens to win two of three seats on its governance Senate, and Makina, which lost about $4.2 million on January 20, 2026, after a $280 million flash loan was used to manipulate its share price oracle.
Protection Against Flash Loan Attacks
Flash loan attacks are possible because some contracts calculate the price of a token or trading pair entirely from their own balances or from a single pool, which one large trade can move. Using a time-weighted average price or an external decentralized oracle, limiting how far prices can move within one block, and checking key balances after each step make an exploit much harder to profit from.
Security audits help find these flaws before launch, and many teams add bug bounties and real-time monitoring. Our blockchain security guide covers wider defenses. Users cannot stop an attack on a protocol, but they can check whether it has been audited, how it sources prices and whether it has been exploited before. This entry is for education and is not investment advice.
Frequently Asked Questions
What is a flash loan?
A flash loan is a loan with no collateral that must be borrowed and repaid within a single blockchain transaction. If the borrower cannot repay it, plus a fee, before the transaction ends, the whole transaction is reversed as if it never happened. Aave lists a 0.05% fee on its V3 flash loans. Traders use them for arbitrage, liquidations and collateral swaps.
How does a flash loan attack work?
The attacker borrows a large sum with a flash loan, uses it to push a price that a target protocol trusts, or to trigger a bug, and then takes out more value than the protocol should allow. The loan is repaid in the same transaction and the attacker keeps the difference. The bZx attacks in February 2020 were early examples.
Are flash loan attacks still common in 2026?
They still happen, but most are small. DefiLlama’s hacks database, read November 16, 2026, lists 44 incidents in 2026 whose descriptions mention a flash loan, with about $20 million taken in total. The largest was X100’s loss of about $4.75 million on October 24, 2026. The biggest cases, such as Euler’s $197 million loss in 2023, came earlier.
Sources: DefiLlama hacks database (read 19:07 UTC, November 16, 2026); Aave documentation on flash loans (read November 16, 2026).