MEV Sandwich Attacks Explained: How Bots Drain Your Crypto Trades (And How to Stop Them in 2026)
MEV sandwich attacks stole $60M from Ethereum traders in 2025 alone. Learn exactly how they work, who runs them, and 5 proven ways to protect yourself in 2026.
chartbreaker
If even the co-founder of Ethereum can get sandwich attacked, you definitely can too.
On May 7, 2026, a bot known as JaredfromSubway.eth front-ran Vitalik Buterin's swap of 26,544 digitalbits (XDB) tokens — worth approximately $3.86 — by deploying $1.14 million in WETH across SushiSwap and Uniswap V2. The bot routed massive volume through both pools to artificially move the price before Buterin's trade landed, then reversed its position after, pocketing the difference. The transaction fees cost the bot more than it made — a $5.14 gas loss — but the point stands: MEV bots run on automation, not discretion. They scan every pending transaction in the public mempool, every block, every second.
This is maximal extractable value (MEV), and it's silently draining billions from everyday DeFi traders.
What Is MEV?
MEV stands for Maximal Extractable Value — the profit that validators, block builders, and third-party bots can extract by reordering, inserting, or censoring transactions within a block.
In the early days of Ethereum, this was called "miner extractable value." After the merge to proof-of-stake, the name evolved, but the mechanics didn't. Block builders still control which transactions get included, in what order, and how — and that ordering power is worth a lot of money.
MEV takes several forms:
- Sandwich attacks — wrapping your trade between two transactions to profit from price movement
- Arbitrage — exploiting price differences between DEXs before you can react
- Liquidation sniping — racing to be first to liquidate an undercollateralized DeFi position
- Front-running — executing a trade ahead of yours, knowing your order will push the price
Sandwich attacks are the most damaging to retail traders. Here's exactly how they work.
How a Sandwich Attack Works
A sandwich attack has three transactions in a specific sequence:
- Front-run: The bot detects your pending swap in the public mempool and places an identical trade ahead of yours, buying the same token and pushing its price up slightly.
- Your trade executes: Your swap goes through at a slightly worse price than expected — within your slippage tolerance.
- Back-run: The bot immediately sells the tokens it bought in step 1 at the inflated price your trade helped create, locking in a profit.
You pay slightly more (or receive slightly less) than market price. The bot keeps the difference. Multiply this across thousands of transactions per day, and you understand why JaredfromSubway has extracted an estimated $7 million or more over hundreds of thousands of attacks.
The entire attack happens in milliseconds. You never know it happened.
Why the Public Mempool Enables This
When you submit a swap on a public DEX, your transaction sits in the mempool — a waiting area of unconfirmed transactions — before a validator includes it in a block. That mempool is visible to everyone.
MEV bots monitor this mempool continuously, parsing every pending transaction for sandwich opportunities. They see your trade, calculate potential profit, submit their own transactions with a higher gas fee to jump ahead of yours, and execute the attack before you can react.
The higher your slippage tolerance and the larger your trade, the more attractive a target you become.
The Scale of the Problem
Ethereum
Between November 2024 and October 2025, sandwich attacks on Ethereum caused approximately $60 million in trader losses. That's $5 million per month, every month, siphoned away from DeFi users who didn't even know it was happening.
The extraction rate has dropped from a peak of nearly $10 million per month in late 2024 to around $2.5 million per month by late 2025. Profitability per attack has compressed dramatically — average profit per sandwich dropped to roughly $3 per attack, and about 30% of all active sandwich bots are now operating at a net loss.
Why? Competition. More bots chasing the same opportunities compresses margins. But JaredfromSubway still dominates, controlling an estimated 70% of all Ethereum sandwich attacks — a near-monopoly position in the MEV extraction market.
Solana
The situation on Solana is far worse. Bots extracted an estimated $370 million to $500 million in MEV from Solana traders over a 16-month period ending in May 2025. Retail traders on Solana's DEXs have started calling the toll the "Jito Tax" — a reference to Jito Labs' tip-based block ordering system that MEV bots exploit.
Solana's high throughput and low fees make it cheaper for bots to run attacks at scale, and the lack of native MEV protection on most DEXs compounds the problem.
Where Attacks Concentrate
Research from EigenPhi shows that 38% of all Ethereum sandwich attacks in 2025 targeted stablecoin pools. Traders swapping between USDC, USDT, DAI, and similar assets assume low-risk, low-slippage trades — but that predictability makes them prime targets.
Large trades on low-liquidity tokens are also heavily targeted. Anything with a predictable, detectable price impact will be sandwiched if the math pencils out.
Who Is JaredfromSubway.eth?
JaredfromSubway.eth is the most notorious MEV bot on Ethereum. It first rose to prominence in 2023 during the meme coin frenzy around tokens like PEPE and WOJAK, at one point accounting for 7% of all gas fees on Ethereum during peak activity.
The bot operates at industrial scale — scanning every pending transaction, calculating potential extraction value, and submitting hundreds of attack transactions per hour whether they're profitable or not. The Vitalik incident (where the bot lost money after gas fees on a $4 swap) illustrates how automated the operation is: there's no human deciding which trades to attack. The algorithm runs continuously.
This is what makes MEV so insidious. It's not personal. It's purely mechanical, always on, and extracting value at a scale no human could match.
5 Ways to Protect Yourself From Sandwich Attacks
The good news: protection is increasingly accessible. Here are the most effective defenses, ranked by ease of use.
1. Use MEV-Protected DEX Aggregators
This is the single most effective change most traders can make.
CoW Swap uses batch auctions where "solvers" compete to settle multiple trades at once, off-chain, at the best price. Transactions are never exposed to the public mempool in their exploitable form. CoW Swap's Coincidence of Wants mechanism matches opposing orders directly, eliminating sandwich opportunities entirely.
UniswapX routes trades through private off-chain fillers who commit to execution prices, then settle on-chain. Your trade never hits the public mempool until it's already filled.
1inch Fusion works similarly — private order flow routed through trusted fillers with MEV protection built in.
If you're regularly swapping on Uniswap or SushiSwap directly, switching to one of these aggregators is a quick, free upgrade.
2. Tighten Your Slippage Tolerance
Default slippage settings on most DEXs are 0.5%–3%. That's your sandwich bot's profit margin window.
Set your slippage as tight as the liquidity allows — often 0.1%–0.3% for liquid trading pairs. The trade-off is a higher chance of transaction failure if the market moves between submission and execution. But a failed transaction with a small gas fee loss beats a successful one where you quietly paid 2% to an MEV bot.
For volatile low-cap tokens, tight slippage may not be feasible. In those cases, consider the trade-offs carefully before executing a large swap in a thin pool.
3. Use a Private RPC Endpoint
This is the most technical option, but highly effective.
A private RPC (Remote Procedure Call) endpoint submits your transactions directly to block builders without broadcasting them to the public mempool. MEV bots can only see transactions in the public mempool — they're blind to private submissions until the block is already built.
Two widely used options:
- MEV Blocker (mevblocker.io) — A free, open-source private RPC developed by CoW Protocol and Agnostic Relay. Routes transactions to a network of searchers who bid for your order flow and rebate some of the MEV back to you.
- Flashbots Protect — Sends transactions privately to Flashbots' block builders, keeping them out of the public mempool entirely.
You configure these in your wallet settings by replacing the default public Ethereum RPC with the private endpoint. Most wallets like MetaMask allow this in 30 seconds.
4. Use Limit Orders Instead of Market Orders
Limit orders specify a price you're willing to accept — not a range. If the market isn't at your price, the trade simply doesn't execute. No slippage, no sandwich opportunity.
Uniswap v4 includes native limit order functionality. 1inch and dYdX have supported limit orders for years. For active traders, shifting from market swaps to limit orders eliminates an entire category of MEV risk.
5. Split Large Orders
Large trades create large, detectable price impacts — exactly what sandwich bots look for. Breaking a $100,000 swap into ten $10,000 transactions makes each individual trade less attractive to attack, reducing expected profit per sandwich below the gas cost threshold.
Combine this with a private RPC for maximum protection.
What Ethereum Is Doing About MEV Systemically
Individual protection is helpful, but the real fix requires protocol-level changes. Vitalik Buterin has been vocal about the need to eliminate "toxic MEV" at the infrastructure layer — and Ethereum's roadmap is finally addressing it.
Encrypted Mempools
The core insight: if bots can't see your transaction, they can't sandwich it.
An encrypted mempool hides transaction details until a block is finalized. The transaction content is committed to but not revealed until after ordering is complete. Sandwich bots operating on pre-execution information would be blinded.
Buterin noted: "If a transaction is encrypted until it's included, no one gets the opportunity to 'wrap' it in a hostile way."
ePBS and FOCIL (Glamsterdam Roadmap)
Ethereum's Glamsterdam upgrade (expected H1 2026) introduces enshrined Proposer-Builder Separation (ePBS) directly into the consensus layer. Currently, a small group of block builders (Titan, BeaverBuild, and a handful of others) control most of Ethereum's block production. ePBS separates who proposes blocks from who builds them, reducing this concentration.
FOCIL (Fork-Choice enforced Inclusion Lists) adds another layer — validators can mandate that certain transactions be included in blocks, making censorship and ordering manipulation harder.
Together with encrypted mempools, Buterin has described ePBS + FOCIL + encrypted mempools as a "Holy Trinity" of MEV and censorship resistance solutions.
None of these are live yet. But they're on the roadmap, and the fact that Vitalik's own swap was sandwiched days before this article published adds urgency to the timeline.
Risks and Considerations
MEV protection isn't free from trade-offs:
Private RPCs can fail silently. If your private RPC endpoint is down or slow, your transaction may be delayed or dropped without clear feedback. Always verify transaction status.
MEV-protected aggregators may charge fees. CoW Swap and UniswapX take small protocol fees. For very small trades, these can exceed the MEV savings. Run the math.
Tight slippage causes more reverts. Failed transactions still cost gas. During periods of high volatility, tight slippage settings can lead to repeated failures. Adjust dynamically.
Private routing isn't 100% immune. Research published in late 2024 found 2,932 "private sandwich attacks" against 3,126 private victim transactions over two months, generating $409,236 in losses. Even private order flow has vulnerabilities when routing logic is predictable.
Practical Takeaways
Here's the three-step baseline that covers most traders in most situations:
- Switch your wallet's default RPC to MEV Blocker or Flashbots Protect (takes 2 minutes, free).
- Default to CoW Swap or UniswapX for swaps over $500.
- Set slippage to 0.1%–0.5% on liquid pairs; accept trade failures as the cost of protection.
For high-frequency or large-volume traders, limit orders and order splitting become increasingly important.
The Vitalik incident is a useful reminder: MEV bots don't discriminate. They target everyone, every transaction, automatically. The only question is whether you make it worth their while.
Disclaimer: This article is for informational purposes only and does not constitute financial advice. Always do your own research before making investment decisions.
Tags
Ready to start trading?
Compare top cryptocurrency exchanges and find the best platform for you.
Compare Exchanges