CVE-2026-63097

Dendrite 0.13.8 syncapi /context Endpoint Post-Leave State Exposure

Published Jul 17, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Matrix
Matrix dendrite
CPEs cpe:2.3:a:matrix:dendrite:*:*:*:*:*:*:*:*
Vendors & Products Matrix
Matrix dendrite
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 28, 2026, 1:50 AM
Reserved
Jul 15, 2026, 3:45 PM
Status
Deferred
Published
Jul 17, 2026, 4:17 PM
Modified
Oct 24, 2026, 8:10 PM