Description
Dendrite through 0.13.8 contains an improper access control vulnerability in the syncapi /context endpoint (syncapi/routing/context.go) that allows authenticated local users to access post-leave room state events by exploiting a flawed membership check that evaluates only the RoomExists field while ignoring IsInRoom, HasBeenInRoom, and Membership fields. Attackers who have left a room can call the rooms context API endpoint for a previously permitted event and receive unfiltered current room state that the /messages and /sync endpoints correctly withhold.
Published: 2026-07-17
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw in Dendrite’s syncapi /context endpoint performs an incomplete membership check, validating only that the room exists while disregarding the user’s current membership status. Because the check ignores flags such as IsInRoom, HasBeenInRoom and Membership, an authenticated local user who has already left a room can request the context for that room and obtain the full current state. This bypasses the protections that the /messages and /sync endpoints apply, allowing a post‑leave operator to read potentially confidential room state data that was not intended for them. The vulnerability represents improper access control (CWE‑863).

Affected Systems

The weakness exists in matrix‑org’s Dendrite server version 0.13.8 and all earlier releases. An attacker must be a local authenticated user within the same server instance. Users who have logged in previously but subsequently left a room are the only ones who can exploit the flaw; the problem does not affect guests or remote unauthenticated traffic. Future releases beyond 0.13.8 are not listed as affected, implying remediation in those versions.

Risk and Exploitability

With a CVSS score of 5.3 the risk is moderate. The EPSS score is less than 1%, indicating a low probability of exploitation in the wild. The vulnerability is not present in the CISA KEV catalog. Exploitation requires no special privileges beyond a normal local login; once authenticated the attacker only needs to target the /context endpoint for a room previously joined but subsequently left. The flaw bypasses normal membership checks, so the attacker can read the room’s current state without further authorization, potentially leaking sensitive information.

Generated by OpenCVE AI on July 31, 2026 at 00:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Dendrite to a version that corrects the membership validation for the /context endpoint (any release ≥0.13.9 if available).
  • If a patch is not yet released, isolate the /context endpoint so only trusted internal services or hosts can reach it, for example by firewall or reverse‑proxy rules.
  • Continuously examine server logs for /context requests made by users who have a leave status in a room; flag or block suspicious activity.

Generated by OpenCVE AI on July 31, 2026 at 00:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
First Time appeared Matrix
Matrix dendrite
CPEs cpe:2.3:a:matrix:dendrite:*:*:*:*:*:*:*:*
Vendors & Products Matrix
Matrix dendrite

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 16:00:00 +0000

Type Values Removed Values Added
Description Dendrite through 0.13.8 contains an improper access control vulnerability in the syncapi /context endpoint (syncapi/routing/context.go) that allows authenticated local users to access post-leave room state events by exploiting a flawed membership check that evaluates only the RoomExists field while ignoring IsInRoom, HasBeenInRoom, and Membership fields. Attackers who have left a room can call the rooms context API endpoint for a previously permitted event and receive unfiltered current room state that the /messages and /sync endpoints correctly withhold.
Title Dendrite 0.13.8 syncapi /context Endpoint Post-Leave State Exposure
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:50:00.775Z

Reserved: 2026-07-15T15:45:44.601Z

Link: CVE-2026-63097

cve-icon Vulnrichment

Updated: 2026-07-23T19:18:48.792Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T00:15:05Z

Weaknesses