Sep 16, 2026·7 min read·26 visits
Unauthenticated remote attackers can bypass Django view-level access controls to mount protected reactive views and execute state-changing event handlers via direct WebSocket or Server-Sent Events (SSE) connections.
An authorization bypass vulnerability exists in the djust framework (djust-org/djust) prior to version 1.0.7. The framework fails to enforce standard Django view-level authorization mechanisms, such as AccessMixins or dispatch decorators, when mounting reactive views over stateful transport layers (WebSockets and Server-Sent Events). Unauthenticated or low-privileged attackers can establish persistent connections to mount arbitrary protected views and execute state-changing event handlers.
The djust framework is designed to bring reactive, Server-Side Rendered (SSR) components inspired by Elixir's Phoenix LiveView to Django applications.
By combining Django's model-view structure with a high-performance Rust execution engine, djust enables developers to establish interactive, stateful browser-to-server connections. The request lifecycle consists of an initial HTTP Server-Side Rendering (SSR) phase followed by an upgrade to a stateful transport layer using WebSockets or Server-Sent Events (SSE).
Prior to version 1.0.7, a critical structural gap existed between these two transport states. Standard Django security practices rely on view-level attributes, decorators, and authentication mixins that execute during the standard HTTP dispatch phase. When a client upgrades the connection to establish a stateful WebSocket session, the view-level dispatch cycle is not re-executed, which leaves stateful endpoints vulnerable to direct access.
This vulnerability exposes a major attack surface across any deployment of djust that secures reactive views using standard Django middleware, mixins, or decorators. An unauthenticated attacker can target the WebSocket endpoint directly, completely bypassing the initial HTTP-based security gates. This allows unauthorized access to data and execution of backend actions that were intended to be restricted to authenticated administrative users.
The root cause of CVE-2026-61594 lies in how djust managed authorization checks during the stateful transport mount phase.
Standard Django views utilize the dispatch() method as a unified entry point for routing, executing decorators, and applying middleware checks. In contrast, the stateful WebSocket and SSE channels in vulnerable versions of djust relied on a decoupled, custom authorization function named check_view_auth.
This helper function did not replicate or trigger the standard Django dispatch() inheritance chain. Instead, check_view_auth inspected only a subset of authorization parameters and failed to recognize native Django mixins like LoginRequiredMixin, PermissionRequiredMixin, or UserPassesTestMixin. Furthermore, any decorators applied to the dispatch() method of a LiveView subclass—such as @method_decorator(login_required)—were never executed because the persistent socket handler directly instantiated the view and mounted its state without executing dispatch().
Consequently, an attacker who could not access the initial HTTP view (due to redirecting or rejecting authorization logic) could bypass the gate by establishing a raw WebSocket connection. By supplying the target view class's Python import path, the client could force the backend to initialize the restricted view. The djust server would then proceed to handle stateful event dispatches from the unauthenticated client, bypassing all intended access controls.
To understand the fix implemented in version 1.0.7, we must examine how the underlying verification logic was hardened.
In the vulnerable implementation, check_view_auth was blind to Django's standard authorization mixins. This allowed views inheriting from LoginRequiredMixin to be initialized blindly over stateful connections.
The patch introduced in version 1.0.7 addresses this by explicitly inspecting the target view class's inheritance hierarchy and executing the mixin requirements programmatically. It retrieves class-level configuration variables and mimics Django's security checks during the stateful handshake.
# Vulnerable check_view_auth implementation (Conceptual / Pre-1.0.7)
def check_view_auth(request, view_class):
# Only superficial checks were performed, completely ignoring
# Django's LoginRequiredMixin or customized dispatch() overrides.
if hasattr(view_class, 'djust_custom_gate'):
return view_class.djust_custom_gate(request)
return True # Silently defaults to authorized for standard mixins# Patched check_view_auth implementation (Conceptual / Post-1.0.7)
from django.contrib.auth.mixins import AccessMixin
def check_view_auth(request, view_class):
# Check for standard Django AccessMixin subclasses explicitly
if issubclass(view_class, AccessMixin):
# Ensure the request context has an authenticated user
if hasattr(view_class, 'login_required') and view_class.login_required:
if not request.user.is_authenticated:
return False
# Re-run custom user passes tests or permission checks
if hasattr(view_class, 'has_permission'):
# Resolve view instance to execute standard Django permission evaluations
view_instance = view_class()
view_instance.request = request
if not view_instance.has_permission():
return False
# Execute newly standardized declarative djust gates
if getattr(view_class, 'login_required', False) and not request.user.is_authenticated:
return False
return TrueIn addition to programmatic checks, the patch enforces static safety. The newly introduced system check djust.S004 evaluates views during application initialization. If a developer attempts to use an HTTP-specific @method_decorator on the dispatch method of a LiveView subclass, the system check raises an error and halts startup, preventing deployment of insecure configurations.
Exploiting this vulnerability does not require specialized tools or complex conditions.
An attacker only needs network access to the application's WebSocket or SSE path (typically hosted at /ws/ or /events/) and knowledge of the target view's import path. In most Django projects, these import paths follow predictable conventions (e.g., myapp.views.DashboardLiveView).
An attack begins by setting up a raw WebSocket client. Instead of browsing to /dashboard/, which redirects to a login prompt, the attacker establishes a connection directly to the persistent channel. The client then transmits a crafted mount payload over the active socket to instantiate the target view.
{
"type": "mount",
"view": "myapp.views.AdminControlLiveView",
"url": "/admin/control/"
}Upon receiving this packet, the vulnerable server executes check_view_auth. Since the logic is blind to the administrative decorators protecting dispatch(), the handshake succeeds. The backend responds by sending the initial server-side rendered state to the attacker over the WebSocket connection, effectively giving them full read access to the dashboard. The attacker can then issue reactive state-change commands by executing arbitrary event frames, such as deleting users or modifying global configurations.
The security impact of CVE-2026-61594 is severe, particularly for applications utilizing djust to build administrative interfaces or dashboards containing sensitive user data.
Because the vulnerability bypasses the primary line of defense in Django views, attackers can achieve unauthenticated remote code and state execution. Any stateful function exposed as a handler in a LiveView component is accessible to the attacker.
The integrity impact is high because these handlers are designed to perform database modifications, state updates, and resource creation. An unauthorized user can trigger any event-driven function defined in the view, leading to potential data corruption or unauthorized deletion. The confidentiality impact is also high, allowing malicious actors to inspect the visual components, configuration states, and underlying model records rendered by the target view.
With a CVSS v3.1 score of 9.1, this vulnerability represents a severe threat to applications exposed to the public internet. The attack complexity is low, requiring no authentication or user interaction. If a project relies on standard Django authentication mixins to secure reactive endpoints, they must be considered completely exposed until the application is patched.
The primary mitigation is upgrading to djust version 1.0.7 or later, which fully secures stateful channels and integrates with Django's native authorization systems.
To perform the upgrade, execute the following command in your project environment:
pip install --upgrade djust
If an immediate upgrade is not feasible, developers must transition their authorization logic away from standard Django HTTP decorators and custom dispatch() overrides on all LiveView subclasses. Instead, use djust-native, class-level declarative authorization properties. These properties are evaluated across both the standard HTTP rendering pipeline and the stateful transport layers:
# Secure configuration compatible with both pre and post 1.0.7 djust versions
from djust import LiveView
class SecureAdminView(LiveView):
# Enforced globally across HTTP, WebSockets, and SSE
login_required = True
permission_required = "app.view_dashboard"
template_name = "admin.html"Additionally, running python manage.py check is highly recommended. Post-upgrade, this will automatically detect and report any legacy, insecure dispatch authorization configurations that may still exist in your application, allowing developers to refactor them before they reach production.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
djust djust-org | < 1.0.7 | 1.0.7 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-862 |
| Attack Vector | Network (AV:N) |
| CVSS Score | 9.1 (Critical) |
| EPSS Score | Not listed |
| Impact | High (Confidentiality & Integrity) |
| Exploit Status | PoC / Verifiable |
| KEV Status | Not listed |
The software does not perform an authorization check when an actor attempts to access a resource or perform an action.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.
CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.
Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.