CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-61595

CVE-2026-61595: Multi-Tenancy Isolation Bypass on WebSocket and SSE Paths in djust

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 16, 2026·5 min read·18 visits

Executive Summary (TL;DR)

Prior to version 1.0.7, djust does not enforce multi-tenancy boundaries on WebSocket and SSE connection paths. Thread-local context storage is not preserved across ASGI async tasks, leading to an uninitialized tenant ID that defaults to returning unfiltered, global database results to authenticated users.

The multi-tenant isolation mechanism in djust prior to version 1.0.7 fails open on active WebSocket and Server-Sent Events (SSE) connections. Because the tenant context is stored in thread-local variables and initialized exclusively via HTTP middleware, asynchronous event loops executing ASGI/WebSocket code paths do not carry the resolved tenant identifier. When queries are executed without this context, the default database manager fails open, allowing authenticated users of any tenant to query and read sensitive rows across all other tenant accounts.

Vulnerability Overview

The djust framework provides high-performance, reactive rendering mechanisms modeled after Phoenix LiveView within Django. To maintain data boundaries in multi-tenant installations, the djust.tenants module filters database QuerySet results using a tenant identifier established during initial requests.

Traditional HTTP requests pass through standard WSGI/ASGI middleware (TenantMiddleware), which resolves and binds the tenant identifier to the current thread. However, live channels such as WebSockets and Server-Sent Events (SSE) operate outside this synchronous request-response flow. This design exposes a significant gap in state initialization for persistent, asynchronous event-driven loops.

On these asynchronous execution paths, the database queries triggered by user-driven live updates do not evaluate against the authorized tenant ID. Instead, the query manager encounters an uninitialized context and defaults to executing unrestricted, global queries. This exposes a direct path to cross-tenant data disclosure.

Root Cause Analysis

The root cause of this vulnerability lies in the combination of thread-local context storage and a fail-open query model under asynchronous execution models.

First, djust relied on threading.local() to isolate tenant data per execution thread. In modern ASGI applications, incoming connections are managed inside an asynchronous event loop, with synchronous operations offloaded to a thread pool via Django's sync_to_async wrapper. Because threads in this pool are recycled and shared dynamically across distinct async tasks, the thread-local storage is either entirely empty or polluted with context remnants from completely unrelated execution threads.

Second, the system designed the database manager to fail open when the resolved tenant context was null. Instead of raising an exception or returning an empty set when get_current_tenant() returned None, the QuerySet manager allowed the database query to proceed without filtering. This implementation design meant that any query executing within a thread lacking a tenant context bypassed all isolation constraints, as depicted in the execution flow below:

Code Analysis

The vulnerable query management logic in the djust.tenants manager was structured to fallback to an unfiltered parent query when the thread context returned None:

# Insecure implementation prior to v1.0.7
from django.db import models
from threading import local
 
_thread_locals = local()
 
def get_current_tenant():
    return getattr(_thread_locals, 'tenant_id', None)
 
class TenantManager(models.Manager):
    def get_queryset(self):
        tenant_id = get_current_tenant()
        if tenant_id is None:
            # Fails open: returns all rows across all tenants
            return super().get_queryset()
        return super().get_queryset().filter(tenant_id=tenant_id)

The fix implemented in djust version 1.0.7 migrated context tracking to contextvars.ContextVar, which natively tracks state across asynchronous tasks and coroutines. It also redesigned the manager to fail closed when STRICT_MODE is enabled:

# Remediated implementation in v1.0.7
import contextvars
from django.db import models
from django.core.exceptions import PermissionDenied
from django.conf import settings
 
# ContextVar safely tracks tenant across asynchronous coroutines
current_tenant_id = contextvars.ContextVar('tenant_id', default=None)
 
class TenantManager(models.Manager):
    def get_queryset(self):
        tenant_id = current_tenant_id.get()
        if tenant_id is None:
            # Fails closed when STRICT_MODE is True
            if getattr(settings, 'DJUST_STRICT_MODE', True):
                return super().get_queryset().none()
            # Log warning if strict mode is disabled
            return super().get_queryset()
        return super().get_queryset().filter(tenant_id=tenant_id)

Exploitation Methodology

Exploitation of this vulnerability requires an attacker to possess valid credentials for any single, low-privileged tenant account within the platform. The attacker does not need high-level administrative access or advanced permissions.

First, the attacker authenticates normally through the standard login interface. This populates their session cookie and associated authentication tokens.

Second, the attacker establishes a WebSocket connection or opens an SSE stream to the reactive djust routing endpoint. Because the connection handshake succeeds, the ASGI worker handles subsequent data-fetch events.

Third, when the attacker triggers state synchronizations or parameters updates via WebSocket payloads, the server processes these updates in a thread pool execution task. The worker executes the underlying database queries without establishing the tenant identifier in the local context. The database queries return complete, unfiltered tables. These tables are then serialized and transmitted back through the WebSocket frame to the attacker, exposing cross-tenant records.

Impact Assessment

The impact of CVE-2026-61595 is severe. In a multi-tenant software-as-a-service application, the absolute isolation of tenant data is a fundamental security contract. A failure in this boundary compromises the confidentiality of all customer records stored in the shared database.

The CVSS v3.1 base score of 7.7 represents a high-severity flaw. The Attack Vector is Network (AV:N), meaning the vulnerability can be reached remotely. Attack Complexity is Low (AC:L) as it is reproducible over standard WebSockets. Privileges Required is Low (PR:L) since any tenant authentication suffices.

The scope is marked as Changed (S:C) because the exploitation of a bug in the reactive rendering layer directly breaks isolation in the logical database access layer. The confidentiality impact is High (C:H) as all tenant tables configured with the flawed manager are readable. Because it is a read-only data disclosure bug on this specific execution path, integrity and availability scores remain None (I:N / A:N).

Remediation and Mitigation

The recommended remediation is to upgrade djust to version 1.0.7 or later, which shifts state storage to ContextVar and enforces fail-closed query behavior on WebSocket routes.

For systems that cannot be immediately updated, administrators must enforce STRICT_MODE in their Django settings. This forces the database manager to return an empty queryset (.none()) if the tenant context cannot be resolved, converting a data exposure into a service limitation.

Furthermore, developers should run the Django system check framework (python manage.py check) post-upgrade to detect any insecure configurations. This execution validates that STRICT_MODE remains active and that no critical paths bypass context verification.

Technical Appendix

CVSS Score
7.7/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Affected Systems

djust.tenants

Affected Versions Detail

Product
Affected Versions
Fixed Version
djust
djust-org
< 1.0.71.0.7
AttributeDetail
CWE IDCWE-636 / CWE-862
Attack VectorNetwork
CVSS v3.1 Score7.7
ImpactHigh (Confidentiality)
Exploit Statusnone
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-636
Not Failing Securely ('Failing Open')

The software is designed to fail in a state that permits access to restricted resources when an unexpected event occurs or context is missing.

Vulnerability Timeline

Vulnerability Published
2026-09-16
Patch Released in Version 1.0.7
2026-09-16

References & Sources

  • [1]Official Advisory (GHSA-3492-cvg7-9mr2)
  • [2]Release Tag v1.0.7

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•15 minutes ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
1 views•11 min read
•about 1 hour ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
2 views•10 min read
•about 2 hours ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
4 views•11 min read
•about 3 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read
•1 day ago•CVE-2026-12411
8.4

CVE-2026-12411: Cross-Guest Volume Hijack via DevLXD Device PATCH in Canonical LXD

CVE-2026-12411 is a broken access control vulnerability in the DevLXD interface of Canonical LXD versions 6.6 through 6.8. The flaw resides in the devLXDInstancePatchHandler component, which fails to verify storage volume ownership when an instance attaches a new disk device via the /dev/lxd guest socket. When the security.devlxd.management.volumes configuration option is enabled, an untrusted guest or DevLXD identity can issue a crafted HTTP PATCH request referencing another tenant's custom storage volume. The LXD host daemon subsequently mounts the target volume into the requesting guest, permitting unauthorized cross-tenant read and write operations.

Amit Schendel
Amit Schendel
7 views•10 min read
•1 day ago•CVE-2026-105769
9.3

CVE-2026-105769: Azure Entra ID Token Exfiltration in Kaniko via Unanchored ACR Hostname Regex

CVE-2026-105769 (GHSA-5q7h-w9jf-cx97, GO-2026-6225) is an origin validation error and credential exfiltration vulnerability affecting Kaniko prior to version 1.25.20. The flaw stems from an unanchored regular expression in the integrated Azure Container Registry (ACR) credential helper (github.com/chrismellard/docker-credential-acr-env). When Kaniko processes a Dockerfile containing an image reference hosted on a lookalike domain containing an ACR suffix as a substring (e.g., x.azurecr.io.attacker.com), the credential helper acquires a Microsoft Entra ID access token for Azure Resource Manager and transmits it via HTTP POST to the attacker-controlled host.

Amit Schendel
Amit Schendel
11 views•11 min read