A judge stopped an auction on Madonna’s undies!

When you're Madonna, people will try and sell anything for yours!

A New York judge has stopped an impending auction of pop star Madonna’s personal items, including a love letter from her ex-boyfriend the late rapper Tupac Shakur, a pair of worn panties and a hairbrush containing her hair.

A Manhattan state Supreme Court judge Tuesday ordered Gotta Have It! Collectibles to pull 22 items from its rock-and-roll-themed auction scheduled for Wednesday.

The Material Girl sought an emergency court order saying she was “shocked to learn” of the planned online auction of the Tupac letter and had no idea it was no longer in her possession. She says a “former friend” is behind the sale.