{"id":"CVE-2026-61589","aliases":["CVE-2026-61589","GHSA-v9rj-xjfv-xj9r","PYSEC-2026-4046"],"related":[],"kind":"vulnerability","state":"published","title":"djust: WebSocket/runtime reconstructed request omits the client Host, causing host/subdomain TenantResolvers to misresolve the tenant on the live path","summary":"djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to version 1.0.7, the WebSocket `handle_mount` and `ViewRuntime._build_request` rebuild an `HttpRequest` via `RequestFactory().get(...)` with no `HTTP_HOST`, so `request.get_host()` defaulted to `\"testserver\"` on the live path. Host/subdomain/domain `TenantResolver`s then misresolved the tenant — `None` on the live path while the HTTP path resolved correctly. With `STRICT_MODE=False` the tenant-scoped managers returned unscoped rows (cross-tenant disclosure); with the default they returned an empty queryset (broken tenancy). This is fixed in djust 1.0.7. The handshake Host is extracted from the ASGI scope, validated against `ALLOWED_HOSTS` (the same logic as the CSWSH Origin gate, parsed with Django's `split_domain_port` so malformed Hosts are rejected at the boundary), and propagated — with the TLS scheme — into the reconstructed request, so live-path tenant resolution matches HTTP exactly. There is no known workaround on the live path short of upgrading. Users are most exposed when combined with `STRICT_MODE=False`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to version 1.0.7, the WebSocket `handle_mount` and `ViewRuntime._build_request` rebuild an `HttpRequest` via `RequestFactory().get(...)` with no `HTTP_HOST`, so `request.get_host()` defaulted to `\"testserver\"` on the live path. Host/subdomain/domain `TenantResolver`s then misresolved the tenant — `None` on the live path while the HTTP path resolved correctly. With `STRICT_MODE=False` the tenant-scoped managers returned unscoped rows (cross-tenant disclosure); with the default they returned an empty queryset (broken tenancy). This is fixed in djust 1.0.7. The handshake Host is extracted from the ASGI scope, validated against `ALLOWED_HOSTS` (the same logic as the CSWSH Origin gate, parsed with Django's `split_domain_port` so malformed Hosts are rejected at the boundary), and propagated — with the TLS scheme — into the reconstructed request, so live-path tenant resolution matches HTTP exactly. There is no known workaround on the live path short of upgrading. Users are most exposed when combined with `STRICT_MODE=False`.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe WebSocket `handle_mount` and `ViewRuntime._build_request` rebuild an `HttpRequest` via `RequestFactory().get(...)` with no `HTTP_HOST`, so `request.get_host()` defaulted to `\"testserver\"` on the live path. Host/subdomain/domain `TenantResolver`s then misresolved the tenant — `None` on the live path while the HTTP path resolved correctly. With `STRICT_MODE=False` the tenant-scoped managers returned unscoped rows (**cross-tenant disclosure**); with the default they returned an empty queryset (broken tenancy).\n\n### Patches\nFixed in **djust 1.0.7**. The handshake Host is extracted from the ASGI scope, validated against `ALLOWED_HOSTS` (the same logic as the CSWSH Origin gate, parsed with Django's `split_domain_port` so malformed Hosts are rejected at the boundary), and propagated — with the TLS scheme — into the reconstructed request, so live-path tenant resolution matches HTTP exactly.\n\n### Workarounds\nNo workaround on the live path short of upgrading. Most exposed when combined with `STRICT_MODE=False`.","format":"markdown","source":"ghsa"}],"published":"2026-09-16T22:07:52.000Z","modified":"2026-10-01T17:56:18.051Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-348","CWE-639"],"affected":[{"ranges":[{"version":"< 1.0.7","status":"affected"}],"vendor":"djust-org","product":"djust","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.7"}],"ecosystem":"PyPI","package":"djust","purl":"pkg:pypi/djust","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.7"}],"ecosystem":"PyPI","package":"djust","purl":"pkg:pypi/djust","source":"pysec"}],"references":[{"url":"https://github.com/djust-org/djust/security/advisories/GHSA-v9rj-xjfv-xj9r","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/djust-org/djust/releases/tag/v1.0.7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/djust-org/djust","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/djust","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-v9rj-xjfv-xj9r","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61589","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-17T17:10:32.427Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61589","url":"https://www.cve.org/CVERecord?id=CVE-2026-61589","licence":"CVE Terms of Use","modified":"2026-09-17T19:23:05.705Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v9rj-xjfv-xj9r","url":"https://github.com/advisories/GHSA-v9rj-xjfv-xj9r","licence":"CC-BY-4.0","modified":"2026-10-01T17:56:18.051Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61589","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61589","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4046","url":"https://osv.dev/vulnerability/PYSEC-2026-4046","licence":"CC-BY-4.0","modified":"2026-10-01T17:45:04.652Z"}],"updatedAt":"2026-11-25T22:59:39.186Z","epss":{"score":0.00156,"percentile":0.0494,"date":"2026-12-02T12:00:21.000Z"}}