Generally speaking, it does not. Exceptions can arise. For example, the employee may have an employment contract that prohibits such a disclosure, or there may be evidence that the disclosure was part of a larger pattern of unlawful discrimination against or unlawful harassment of the employee. It's not good practice for an employer to share an employee's secrets, but as a general rule they may do so.