Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. djust
  4. ›
  5. CVE-2026-61599

CVE-2026-61599: djust has an unauthenticated arbitrary module import via the WebSocket/SSE view-mount path

September 16, 2026 (updated November 5, 2026)

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.

Consequences: server-side execution of arbitrary importable modules’ import-time side effects by an unauthenticated client (effectively RCE-by-proxy on any host that has a side-effectful importable module), denial of service (import bombs / expensive dependency trees), and a module/class enumeration oracle via distinct error strings.

Reproduced end-to-end: an unauthenticated WebsocketCommunicator mount frame with the allowlist unset imported and executed a sentinel non-LiveView module before the “not a LiveView subclass” rejection.

References

  • github.com/advisories/GHSA-7prp-2623-8g45
  • github.com/djust-org/djust
  • github.com/djust-org/djust/commit/04985e2f6a69faf265fc512b323d28adaa15c3ff
  • github.com/djust-org/djust/releases/tag/v1.0.7
  • github.com/djust-org/djust/security/advisories/GHSA-7prp-2623-8g45
  • github.com/pypa/advisory-database/tree/main/vulns/djust/PYSEC-2026-4038.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-61599
  • pypi.org/project/djust

Code Behaviors & Features

Detect and mitigate CVE-2026-61599 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.7

Fixed versions

  • 1.0.7

Solution

Upgrade to version 1.0.7 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

Source file

pypi/djust/CVE-2026-61599.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.