Vulnérabilité dans djust (CVE-2026-61599)
Résumé
Vulnérabilité dans djust (CVE-2026-61599). Risque d'opérations non autorisées ou de divulgation. Exploitable via LiveView. Atténuation : mise à jour vers 1.0.7 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Impact
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 = ".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.
Affected code
- `python/dj…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-61599 a été découverte dans djust.
Des attaquants peuvent cibler un point d'entrée spécifique comme LiveView à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour djust vers 1.0.7 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « djust CVE-2026-61599 » sur le site de l'éditeur.
CVE-2026-61599 (djust) — CWE-470
Surface d'attaque : LiveView / LIVEVIEW_ALLOWED_MODULES / startswith / mount
Correctif : 1.0.7 — appliquer immédiatement
Contournement : Set LIVEVIEW_ALLOWED_MODULES to the narrow list of modules that contain your mountable LiveView classes.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-470) affecte djust. Les attaquants atteignent le code vulnérable via LiveView.
Consultez l'avis de l'éditeur pour les versions affectées de djust. Surface d'attaque : LiveView / LIVEVIEW_ALLOWED_MODULES / startswith / mount.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 1.0.7.
Contournement : Set LIVEVIEW_ALLOWED_MODULES to the narrow list of modules that contain your mountable LiveView classes.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'djust' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
djustを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Set `LIVEVIEW_ALLOWED_MODULES` to the narrow list of modules that contain your mountable LiveView classes.パッチが適用されるまでの応急処置として、Set
LIVEVIEW_ALLOWED_MODULESto the narrow list of modules that contain your mountable LiveView classes. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade djust to 1.0.7ステージング環境で 1.0.7 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- package pypi.org
- web github.com
- web github.com