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.

She says it's "outrageous and grossly offensive" her DNA could be auctioned.

An auction house spokesman tells the New York Post the allegations will be "challenged and refuted" in court.