# CVE-2021-39164: Improper authorisation of /members discloses room membership to non-members

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.45%, higher than 74% of CVEs (2026-12-01)
- Published: 2021-08-31T16:20:10.000Z
- Modified: 2026-07-08T06:28:52.954Z
- Also known as: GHSA-3x4c-pq33-4w3q, PYSEC-2021-425
- Weaknesses: CWE-200, CWE-863
- Assigned by: GitHub_M

## Description

Matrix is an ecosystem for open federated Instant Messaging and Voice over IP. In 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. Server administrators should upgrade to 1.41.1 or later in order to receive the patch. One workaround is available. Administrators of servers that use a reverse proxy could, with potentially unacceptable loss of functionality, block the endpoints: `/_matrix/client/r0/rooms/{room_id}/members` with `at` query parameter, and `/_matrix/client/unstable/rooms/{room_id}/members` with `at` query parameter.

(As written by CVE List.)

## Affected

- matrix-org synapse: < 1.41.1
- matrix-synapse (PyPI): before 1.41.1; before cb35df940a828bc40b96daed997b5ad4c7842fd3
- matrix synapse: before 1.41.1
- fedoraproject fedora: 34; 35

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/matrix-org/synapse/commit/cb35df940a> (fix, patch, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/releases/tag/v1.41.1> (release-notes, third-party-advisory, web)
- <https://github.com/matrix-org/synapse/security/advisories/GHSA-3x4c-pq33-4w3q> (advisory, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXT7ID7DNBRN2TVTETU3SYQHJKEG6PXN/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2VHDEPCZ22GJFMZCWA2XZAGPOEV72POF/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39164> (advisory)
- <https://github.com/matrix-org/synapse> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2021-425.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2VHDEPCZ22GJFMZCWA2XZAGPOEV72POF> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXT7ID7DNBRN2TVTETU3SYQHJKEG6PXN> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXT7ID7DNBRN2TVTETU3SYQHJKEG6PXN/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2VHDEPCZ22GJFMZCWA2XZAGPOEV72POF/> (web)

## Sources

- CVE List: [CVE-2021-39164](https://www.cve.org/CVERecord?id=CVE-2021-39164), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3x4c-pq33-4w3q](https://github.com/advisories/GHSA-3x4c-pq33-4w3q), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-39164](https://nvd.nist.gov/vuln/detail/CVE-2021-39164), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-425](https://osv.dev/vulnerability/PYSEC-2021-425), CC-BY-4.0, modified 2026-02-26

---

Page: https://cve.day/CVE-2021-39164 · Whole record: https://cve.day/CVE-2021-39164.json · Rebuilt by cve.day 2026-11-25T22:58:03.583Z
