let the cat out of the bag

The phrase is used when a secret is told. (sometimes accidentally) / You told her about the surprise party. You let the cat out of the bag.