CVE-2026-61593: CWE-352: Cross-Site Request Forgery (CSRF) in djust-org djust
CVE-2026-61593 is a high-severity Cross-Site Request Forgery (CSRF) vulnerability in djust versions prior to 1.0.7. The issue arises because certain server-sent events (SSE) endpoints were exempt from CSRF protection and lacked Origin checks, allowing a cross-origin attacker to force a victim's browser to perform authenticated state-changing actions. The vulnerability is fixed in version 1.0.7 by enforcing Origin validation and requiring specific Content-Type headers on POST requests.
AI Analysis
Technical Summary
djust is a Django reactive server-side rendering tool with Rust-powered performance. Before version 1.0.7, its SSE client-to-server POST endpoints were marked @csrf_exempt, and the SSE GET stream endpoint did not validate the Origin header. This allowed a cross-origin attacker to induce a victim's browser, authenticated via cookies, to initiate SSE sessions and send POST requests with credentials included, triggering state-changing event handlers. The session_id parameter is client-chosen and only format-validated, not serving as a CSRF token. The POST requests used a text/plain content type, which is a CORS simple request and bypassed preflight checks. The fix in 1.0.7 adds Origin validation against ALLOWED_HOSTS for all SSE endpoints and requires POST requests to have Content-Type: application/json, blocking the previous bypass. Workarounds include disabling SSE transport or proxying with an Origin allowlist.
Potential Impact
An attacker can exploit this vulnerability to perform unauthorized state-changing actions on behalf of an authenticated user by leveraging cross-origin requests. This can lead to compromise of user session integrity and unauthorized operations within the djust application context. The CVSS 3.1 score of 8.1 reflects high impact on confidentiality and integrity, with no impact on availability.
Mitigation Recommendations
This vulnerability is fixed in djust version 1.0.7. Users should upgrade to version 1.0.7 or later to ensure all SSE endpoints validate the Origin header and enforce Content-Type requirements on POST requests. As a temporary workaround, disabling the SSE transport or placing a proxy in front of the service that enforces an Origin allowlist can mitigate the risk.
CVE-2026-61593: CWE-352: Cross-Site Request Forgery (CSRF) in djust-org djust
Description
CVE-2026-61593 is a high-severity Cross-Site Request Forgery (CSRF) vulnerability in djust versions prior to 1.0.7. The issue arises because certain server-sent events (SSE) endpoints were exempt from CSRF protection and lacked Origin checks, allowing a cross-origin attacker to force a victim's browser to perform authenticated state-changing actions. The vulnerability is fixed in version 1.0.7 by enforcing Origin validation and requiring specific Content-Type headers on POST requests.
CVSS v3.1
Score 8.1high
Affected software
djust-org
djust
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
djust is a Django reactive server-side rendering tool with Rust-powered performance. Before version 1.0.7, its SSE client-to-server POST endpoints were marked @csrf_exempt, and the SSE GET stream endpoint did not validate the Origin header. This allowed a cross-origin attacker to induce a victim's browser, authenticated via cookies, to initiate SSE sessions and send POST requests with credentials included, triggering state-changing event handlers. The session_id parameter is client-chosen and only format-validated, not serving as a CSRF token. The POST requests used a text/plain content type, which is a CORS simple request and bypassed preflight checks. The fix in 1.0.7 adds Origin validation against ALLOWED_HOSTS for all SSE endpoints and requires POST requests to have Content-Type: application/json, blocking the previous bypass. Workarounds include disabling SSE transport or proxying with an Origin allowlist.
Potential Impact
An attacker can exploit this vulnerability to perform unauthorized state-changing actions on behalf of an authenticated user by leveraging cross-origin requests. This can lead to compromise of user session integrity and unauthorized operations within the djust application context. The CVSS 3.1 score of 8.1 reflects high impact on confidentiality and integrity, with no impact on availability.
Mitigation Recommendations
This vulnerability is fixed in djust version 1.0.7. Users should upgrade to version 1.0.7 or later to ensure all SSE endpoints validate the Origin header and enforce Content-Type requirements on POST requests. As a temporary workaround, disabling the SSE transport or placing a proxy in front of the service that enforces an Origin allowlist can mitigate the risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T17:12:17.238Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aaabd8e55bf5e2cf5d47509
Added to database: 09/16/2026, 16:02:22 UTC
Last enriched: 09/16/2026, 16:16:34 UTC
Last updated: 09/16/2026, 16:21:36 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.