Cross-Site Request Forgery Vulnerability in djust SSE Transport
The djust library before version 1.0.7 is vulnerable to CSRF via its SSE transport, allowing cross-origin requests to execute state-changing event handlers as an authenticated victim.
CVE search metadata
CVE search record: CVE-2026-61593. Severity: high. CVSS: 8.1. KEV: no. Product: djust (< 1.0.7). Brief: Cross-Site Request Forgery Vulnerability in djust SSE Transport. Brief link: https://feed.craftedsignal.io/briefs/2026-09-djust-csrf/
The djust library, prior to version 1.0.7, contains a high-severity Cross-Site Request Forgery (CSRF) vulnerability (CVE-2026-61593) affecting its Server-Sent-Events (SSE) transport implementation. The vulnerability stems from a lack of Origin header validation on SSE endpoints and the use of CSRF-exempted POST endpoints. Because the library allows client-chosen session identifiers and accepts requests with a 'text/plain' content type, an attacker can bypass CORS preflight checks to perform 'simple requests' from a malicious cross-origin page. This enables an attacker to force an authenticated victim's browser to establish an SSE session, mount a LiveView, and execute state-changing event handlers on behalf of the victim. Defenders should prioritize patching to version 1.0.7, which introduces strict Origin validation against 'ALLOWED_HOSTS' and mandates 'application/json' content-type checks.
Impact
Successful exploitation allows an unauthorized remote attacker to perform state-changing actions within the application context of an authenticated victim. This can lead to unauthorized data modification, account takeover, or the execution of privileged administrative actions. The vulnerability affects all applications using djust prior to version 1.0.7.
Recommendation
- Upgrade the djust package to version 1.0.7 or later to implement required Origin validation and content-type enforcement.
- If immediate patching is not possible, disable the SSE transport entirely or implement a reverse proxy layer capable of enforcing strict Origin header allowlisting for all traffic directed to the SSE endpoints.
- Monitor web server access logs for anomalous cross-origin POST requests or SSE stream requests originating from unexpected domains.
Immediate actions
Upgrade djust to version 1.0.7 or later
Mitigations
Configure proxy to enforce strict Origin header validation
CVE-2026-61593
Detection coverage 1
Detects CVE-2026-61593 Exploitation - Cross-Origin SSE Request
highDetects potential CSRF exploitation attempts against djust SSE endpoints by monitoring for requests with cross-origin headers or suspicious simple-request content types.
Detection queries are available on the platform. Get full rules →