Why Might a Limit Order on a DEX Still Be Vulnerable to Front-Running in Some Niche Scenarios?
A limit order on a DEX can be vulnerable in niche scenarios, primarily if the order is large enough to move the market price to the limit price. An attacker could front-run the order by placing a small trade to move the price to the limit, causing the victim's order to execute, and then immediately trading again to profit from the subsequent price movement.
This is a form of market manipulation rather than traditional front-running, but it exploits the visibility of the pending limit order.