djust has an unauthenticated arbitrary module import via the WebSocket/SSE view-mount path
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to version 1.0.7, the djust live transport resolves the LiveView to mount from a client-supplied dotted path by calling `__import__(module_path, ...)`. The module is imported — running its top-level code (import side effects) — before the framework checks that the resolved object is a `LiveView` subclass and before any per-view authentication. The `LIVEVIEW_ALLOWED_MODULES` allowlist that should contain this is fail-open (`if allowed_modules:` — skipped when the setting is unset, the framework default) and uses loose `startswith` matching. An unauthenticated WebSocket client (the WS handshake does not require auth; per-view auth runs only after import + instantiate) can therefore send a `mount` / `live_redirect_mount` / `url_change` frame (or an SSE mount) with `view = "<any.importable.module>.AnyName"` and cause the server to import — and execute the top-level code of — any importable Python module by name. Version 1.0.7 fixes the issue with a fail-closed resolution gate (`djust._view_resolution.is_view_import_allowed`): a client view path resolves only if (a) its module is already loaded (`sys.modules` — so resolving runs no new code; URL-routed views loaded by URLconf at startup keep working with zero config) or (b) it matches `LIVEVIEW_ALLOWED_MODULES` on a module-segment boundary (explicit opt-in for lazily-imported views). The gate runs before `__import__` at all three sinks (+ defense-in-depth inside `_instantiate_view`). As a workaround, set `LIVEVIEW_ALLOWED_MODULES` to the narrow list of modules that contain your mountable LiveView classes. (Note: pre-patch the allowlist is `startswith`-matched and the import still precedes the subclass check, so this is mitigation, not a complete fix.)
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| djust-org | djust | before 1.0.7 | 1.0.7 | Patch available | CNA |
| — | djust (PyPI) | before 1.0.7 | 1.0.7 | Patch available | GHSA-7prp-2623-8g45 |
- djust Vendordjust-org Affected before 1.0.7 Fixed in 1.0.7 Patch available CNA
- djust (PyPI) Vendor— Affected before 1.0.7 Fixed in 1.0.7 Patch available GHSA-7prp-2623-8g45
Remediation
- Fix · CNA djust (djust-org) Fixed in 1.0.7
- Fix · GHSA-7prp-2623-8g45 djust (PyPI) Fixed in 1.0.7 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-61599
- 2026-10-03 Alias added: GHSA-7prp-2623-8g45
- 2026-11-05 5 new references · GHSA-7prp-2623-8g45
References
Advisory 2
Other 6
- https://github.com/djust-org/djust/security/advisories/GHSA-7prp-2623-8g45
- https://github.com/djust-org/djust/releases/tag/v1.0.7
- https://github.com/djust-org/djust/commit/04985e2f6a69faf265fc512b323d28adaa15c3ff
- https://github.com/djust-org/djust
- https://github.com/pypa/advisory-database/tree/main/vulns/djust/PYSEC-2026-4038.yaml
- https://pypi.org/project/djust
More djust-org vulnerabilities
- TI-2026-40112 Improper authorization in djust-org djust CVSS 3.1HIGH 8.2
- TI-2026-78534 Arbitrary file read in djust find_handlers_for_template MCP tool CVSS 3.1LOW 3.3
- TI-2026-44122 djust has an authorization bypass on the WebSocket/SSE mount path CVSS 3.1CRITICAL 9.1
- TI-2026-44121 Cross-site request forgery in djust-org djust CVSS 3.1HIGH 8.1
- TI-2026-44119 djust: Unsigned client state snapshot is restored as trusted view state (privilege escalation / state injection) CVSS 3.1HIGH 8.1
- TI-2026-44120 Session fixation in djust-org djust CVSS 3.1HIGH 7.4
Sources
- CVE-2026-61599 · CVE Program
- CVE-2026-61599 · NVD
- FIRST EPSS
- GHSA-7prp-2623-8g45 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences