Hafetz Haim Halachot
Halacha 131 / 215

Hilchos Lashon Hara chapter 9, section 6

If someone told you something, you may not repeat it to others, unless that person gave you permission.

And even then, it is only allowed if what they said is not lashon hara.