to tell a secret carelessly or by mistake
I wanted it to be a surprise, but my sister let the cat out of the bag.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition