Related Vulnerabilities: CVE-2021-39164  

In matrix-synapse versions 1.41.0 and prior, unauthorised users can access the membership (list of members, with their display names) of a room if they know the ID of the room. The vulnerability is limited to rooms with `shared` history visibility. Furthermore, the unauthorised user must be using an account on a vulnerable homeserver that is in the room.

Severity Medium

Remote Yes

Type Information disclosure

Description

In matrix-synapse versions 1.41.0 and prior, unauthorised users can access the membership (list of members, with their display names) of a room if they know the ID of the room. The vulnerability is limited to rooms with `shared` history visibility. Furthermore, the unauthorised user must be using an account on a vulnerable homeserver that is in the room.

AVG-2334 matrix-synapse 1.40.0-1 1.41.1-1 Medium Testing

https://github.com/matrix-org/synapse/security/advisories/GHSA-3x4c-pq33-4w3q
https://github.com/matrix-org/synapse/commit/52c7a51cfc568ed61d800df99dcca25dc3b5fe3e