TesseraSwap sent USDC to a swap caller before collecting the WETH it was owed, then let the caller source that repayment through an outside swap on the WETH/USDC pool, so the caller kept the spread between Tessera's own quote and the pool price. DeFiHackLabs reports about $20,000 lost on Base on May 18, 2026, though the cited transaction's recorded transfers show the attacker's own take from it at only about $9.32.
Security ·
Logged as “2026-05-18: Callback Repayment Price Spread on TesseraSwap”.
TesseraSwap runs swaps through a callback: a caller asks for a fixed amount of one token, the contract sends the matching amount of the other token up front, then calls back into the recipient before the function returns, expecting repayment in the token the caller asked for.
The entry point is tesseraSwapWithCallback(address tokenIn, address tokenOut, int256 amountSpecified, uint256 amountCheck, address recipient, bytes callbackData, bytes swapData). The attack contract calls it with tokenIn = WETH, tokenOut = USDC, a positive amountSpecified, and amountCheck left at zero, turning off whatever minimum-output guard that parameter exists to enforce. TesseraSwap sends USDC to the caller first, then calls tesseraSwapCallback(amountIn, amountOut, bytes) on it to collect the WETH it is owed. Nothing stops that callback from sourcing the WETH through a fresh swap against the WETH/USDC pool at 0x6c561B446416E1A00E8E93E221854d6eA4171372 on PancakeV3.
The attack contract, deployed at 0x74513519689b1FB427747624a4Dd87b3849d39CD, runs a loop named executeAttack 100 times inside one transaction:
tesseraSwapWithCallback for roughly 0.24 WETH, with amountCheck at zero.tesseraSwapCallback, read the pool's sqrtPriceX96 from slot0, then call wethUsdcPool.swap to buy exactly the WETH owed, with the sqrt price limit set to twice the current sqrtPriceX96, a deliberately permissive bound.uniswapV3SwapCallback whatever USDC that swap demands.Basescan's record of the attack transaction, mined on Base at block 46,175,321 on May 18, 2026, shows the shape of that loop at scale. An account the proof of concept labels the victim, 0x3dBE077e7986657e95e1cc50089f17a5a4af0aae, sends 51,328.95 USDC to the attack contract. The attack contract buys 24.04 WETH off the pool for 51,319.97 USDC, matching the proof of concept's hardcoded total of 24.043971311659606016 WETH across the hundred calls. That WETH passes through TesseraSwap back to the same victim account. The attacker's own take from that transaction, by the transfers Basescan records, is 8.98 USDC plus 0.00015 WETH in dust, worth roughly $9.32 combined. That is far short of the approximately $20,000 DeFiHackLabs reports for the incident as a whole, so the reported total implies many more cycles than the hundred captured in this single reconstructed transaction, run again in later transactions or against a larger batch than the proof of concept replays.
No independent write-up of the incident turned up. DeFiLlama's hacks list refused the request, SlowMist's hacked-project database and Rekt's leaderboard list no TesseraSwap entry, and the README's own reference, a Telegram post from Defimon Alerts, is not retrievable outside Telegram. TesseraSwap's contract is verified. After the callback it only requires that its tokenIn balance be at least the balance before plus the engine-quoted amountIn (revert string "WTA"), with no check against an external price. No statement from TesseraSwap about a pause, a patch, or compensation surfaced either.
Query every incident yourself — free, no signup
Updated 30 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.