CMA song of the year winner Kacey Musgraves came very close to an embarrassing wardrobe malfunction at country music's biggest night of the year Wednesday.

When the "Follow Your Arrow" singer took the stage to sing a surprise duet with country legend Loretta Lynn, she had to quickly ditch her underwear!

"And just so y'all know, right before I sang, my panties came off," Musgraves confessed in the winner's pressroom.

PHOTOS: Stars without underwear

Musgraves' donned a daring sequined minidress with sheer side panels that required discreet undergarments.

More On This...

"They were the stick-on kind, I mean, just look at this dress," the country singer said. "They were stuck on, and then they weren't stuck on, so I literally had to rip 'em off and throw them somewhere."

Her near-warbdobe malfunction wasn't the only thing that had everyone talking. Musgraves' impossibly large hairdo made an impression on the red carpet.

Follow @FOX411Country for the latest in country music news

WATCH: Know Your Bandmate: Love and Theft