Attorney-client privilege protects confidential communications between an attorney and their client. However, this privilege does not extend to third parties unless the communication is for the purpose of providing legal advice and is intended to remain confidential. Disclosure to third parties not involved in the legal representation can waive the privilege.
For example: If a client shares privileged information with a friend who is not part of the legal team, that communication may no longer be protected.