Let the cat out of the bag
diː katsə aʊs deːm zak lasən
In German Die Katze aus dem Sack lassen
This is a direct translation of the English idiom and is widely understood in Germany.
Example
"Er hat die Katze aus dem Sack gelassen und das Geheimnis verraten."