Djust-org djust
djust authentication bypass: a login_required / on_mount LiveView mount redirect does not close the WebSocket, allowing an unauthenticated client to dispatch event-handler calls
djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to 1.0.4, LiveViewConsumer.handle_mount sends a `{"type":"navigate","to":...}` frame when login_required, permission_required, or a redirecting on_mount hook denies a LiveView mount, but returns without closing the WebSocket or clearing self.view_instance. A browser follows the redirect, but a raw WebSocket client can ignore it and retain the mounted socket. Because LiveViewConsumer.handle_event does not recheck authentication or authorization, the client can send `{"type":"event",...}` frames that invoke @event_handler methods without an authenticated session, including through handle_live_redirect_mount, enabling unauthorized sensitive reads or mutations. This issue is fixed in version 1.0.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.0.4
Fixed in 1.0.4
Mitigation
Upgrade djust to 1.0.4 or later.
References
- Vendor advisory github.com/djust-org/djust/security/advisories…
- Patch github.com/djust-org/djust/pull/1780
- Patch github.com/djust-org/djust/commit/1ae8aa9246b8…
1 more
- Release notes github.com/djust-org/djust/releases/tag/v1.0.4
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.