GHSA-pg97-jvmf-qfvc: CSRF

Published Sep 16, 2026
·
Updated

Impact The SSE client→server POST endpoints are @csrfexempt and the SSE GET stream endpoint had no Origin check, so a cross-origin page could drive a victim-cookie-authenticated SSE session: force the victim's browser to GET the stream URL (which creates and mounts a LiveView as the victim) and POST to the message endpoint with credentials: include to fire state-changing event handlers as the victim. The URL sessionid is client-chosen (validated only for UUID format), so it is not a CSRF token, and a JSON body sent as text/plain is a CORS simple request with no preflight.

Patches Fixed in djust 1.0.7. All three SSE endpoints validate the request Origin against ALLOWEDHOSTS (mirroring the WebSocket CSWSH defense) and reject cross-origin requests with 403; the POST endpoints additionally require Content-Type: application/json (415 otherwise), closing the text/plain simple-request bypass.

Workarounds Disable the SSE transport, or front it with a proxy that enforces an Origin allowlist.

Affected Software

1 affected componentFixes available
pip/djust<1.0.7
1.0.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/djust to a version that resolves this vulnerability.

    Fixed in 1.0.7
  2. Upgrade

    Upgrade djust to a version that resolves this vulnerability.

    Fixed in 1.0.7
  3. Configuration

    Disable the SSE transport to prevent cross-origin attempts.

    SSE transport SSE enabled = false
  4. Compensating control

    Front the SSE with a proxy that enforces an Origin allowlist (rejects cross-origin requests) for the SSE endpoints.

Event History

Sep 16, 2026
Advisory Published
via GitHub·03:45 PM
Data Sourced
via GitHub·03:45 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using the djust SSE transport are exposed if they rely on victim-cookie authentication. The affected flow includes the SSE stream endpoint and the client-to-server POST message endpoints.

2

What does an attacker need to exploit it?

An attacker needs to convince an authenticated victim to visit a cross-origin page. That page can cause the victim's browser to create and mount a LiveView through the stream URL and send state-changing messages using the victim's cookies.

3

Are client-chosen session IDs sufficient protection?

No. The session_id is client-chosen and validated only as a UUID format, so it does not function as a CSRF token.

4

What can be done before upgrading?

Disable the SSE transport, or place it behind a proxy that enforces an Origin allowlist. The fix is available in djust 1.0.7.

5

How does the patched behavior block the attack?

The patched SSE endpoints validate Origin against ALLOWED_HOSTS and reject cross-origin requests with HTTP 403. The POST endpoints also require Content-Type: application/json and return HTTP 415 for other content types, preventing the text/plain simple-request bypass.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203