# CVE-2026-61595: djust: Multi-tenant isolation fails open on the WebSocket/SSE path, disclosing other tenants' data

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/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): 0.38%, higher than 33% of CVEs (2026-12-02)
- Published: 2026-09-16T15:32:10.000Z
- Modified: 2026-10-01T17:56:07.207Z
- Also known as: GHSA-3492-cvg7-9mr2, PYSEC-2026-4036
- Weaknesses: CWE-636, CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- djust-org djust: < 1.0.7
- djust (PyPI): before 1.0.7

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/djust-org/djust/security/advisories/GHSA-3492-cvg7-9mr2> (web)
- <https://github.com/djust-org/djust/releases/tag/v1.0.7> (web)
- <https://github.com/djust-org/djust> (package)
- <https://pypi.org/project/djust> (package)
- <https://github.com/advisories/GHSA-3492-cvg7-9mr2> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61595> (advisory)

## Sources

- CVE List: [CVE-2026-61595](https://www.cve.org/CVERecord?id=CVE-2026-61595), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-3492-cvg7-9mr2](https://github.com/advisories/GHSA-3492-cvg7-9mr2), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-61595](https://nvd.nist.gov/vuln/detail/CVE-2026-61595), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4036](https://osv.dev/vulnerability/PYSEC-2026-4036), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-61595 · Whole record: https://cve.day/CVE-2026-61595.json · Rebuilt by cve.day 2026-11-25T22:59:39.070Z
