# CVE-2026-61589: djust: WebSocket/runtime reconstructed request omits the client Host, causing host/subdomain TenantResolvers to misresolve the tenant on the live path

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 4% of CVEs (2026-12-02)
- Published: 2026-09-16T22:07:52.000Z
- Modified: 2026-10-01T17:56:18.051Z
- Also known as: GHSA-v9rj-xjfv-xj9r, PYSEC-2026-4046
- Weaknesses: CWE-348, CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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`.

(As written by CVE List.)

## Affected

- djust-org djust: < 1.0.7
- djust (PyPI): before 1.0.7

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/djust-org/djust/security/advisories/GHSA-v9rj-xjfv-xj9r> (web)
- <https://github.com/djust-org/djust/releases/tag/v1.0.7> (web)
- <https://github.com/djust-org/djust> (package)
- <https://pypi.org/project/djust> (package)
- <https://github.com/advisories/GHSA-v9rj-xjfv-xj9r> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61589> (advisory)

## Sources

- CVE List: [CVE-2026-61589](https://www.cve.org/CVERecord?id=CVE-2026-61589), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-v9rj-xjfv-xj9r](https://github.com/advisories/GHSA-v9rj-xjfv-xj9r), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-61589](https://nvd.nist.gov/vuln/detail/CVE-2026-61589), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4046](https://osv.dev/vulnerability/PYSEC-2026-4046), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-61589 · Whole record: https://cve.day/CVE-2026-61589.json · Rebuilt by cve.day 2026-11-25T22:59:39.186Z
