{"id":"CVE-2026-61595","published":"2026-09-16T15:33:40Z","modified":"2026-09-16T18:35:16Z","title":"djust: Multi-tenant isolation fails open on the WebSocket/SSE path, disclosing other tenants' data","vendor":"djust-org","product":"djust","tier":"tail","description":{"text":"djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to version 1.0.7, `djust.tenants` isolation was enforced only on the HTTP path. The current tenant was stored in `threading.local()` and set exclusively by the HTTP-only `TenantMiddleware`, so on the live (WebSocket/SSE) path `get_current_tenant()` was always `None` during mount and every event handler — and the tenant-aware `QuerySet` manager failed OPEN (returned the unfiltered queryset, ignoring `STRICT_MODE`), disclosing every tenant's rows to whoever held the socket. `threading.local` was additionally shared across connections on the `sync_to_async` executor thread. This issue is fixed in djust 1.0.7. Tenant storage moved to a `contextvars.ContextVar` (per async task); the resolved tenant is bound around WS/SSE mount and every dispatch; both managers scope the base queryset once and fail CLOSED (`.none()` under the default `STRICT_MODE`); and system check S006 warns when `STRICT_MODE=False`. No known workarounds are available on the live path.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00385,"percentile":0.33413,"provenance":"source"},"cwes":[{"id":"CWE-636","name":"Not Failing Securely"},{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/djust-org/djust/security/advisories/GHSA-3492-cvg7-9mr2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/djust-org/djust/releases/tag/v1.0.7","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":6.68},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"djust-org","affectedVersions":[{"vendor":"djust-org","product":"djust","versions":["< 1.0.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-16T18:18:43.770267Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"djust","vulnerableRanges":["<1.0.7"],"patched":["1.0.7"],"from":["GHSA-3492-cvg7-9mr2","PYSEC-2026-4036"],"provenance":"source"}],"summary":{"text":"The flaw is in djust's multi-tenant isolation (the djust.tenants module) on the WebSocket and SSE live path, where tenant context was never established during mount or event handling, so tenant-aware querysets returned unfiltered data instead of failing closed. An attacker with network access and a valid authenticated socket connection can read rows belonging to every tenant, without any user interaction or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:48Z"},"euvd":{"id":"EUVD-2026-80851","exploited":false,"provenance":"source"}}