To make a remark or provide information when it is inappropriate or indiscreet to do so, or when one does not have permission or the authority to do so.
tell tales out of school
verb
To reveal confidential or sensitive information; to gossip.
How often have the words talk out of turn and tell tales out of school occurred in a corpus of books? (source: Google Ngram Viewer )