PYSEC-2026-4039
djust's observability endpoints are network-exposed: the localhost gate is an opt-in middleware the docs omit, and the views enforce only DEBUG
Quick fix
PYSEC-2026-4039 — djust: upgrade to the fixed version with the command below.
pip install --upgrade 'djust>=1.0.7'Details
### Impact djust's observability endpoints expose live view/session state and a remote method-invocation surface (`eval_handler`). The localhost restriction was an **opt-in middleware that the documented setup omits**; the views themselves enforced only `DEBUG`. In the misconfigured-but-documented scenario (DEBUG on, middleware not installed) a non-localhost client could read live application state and invoke handlers remotely.
### Patches Fixed in **djust 1.0.7**. The localhost restriction is enforced **in-view** on every observability endpoint (no longer dependent on a separately-installed middleware), and `eval_handler` is restricted; gated requests receive a non-disclosing response.
### Workarounds Ensure `DEBUG=False` in production, and do not expose the observability endpoints to untrusted networks.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/djust-org/djust/security/advisories/GHSA-8g2f-g3gq-5rjv[WEB]
- https://github.com/djust-org/djust[PACKAGE]
- https://github.com/djust-org/djust/releases/tag/v1.0.7[WEB]
- https://pypi.org/project/djust[PACKAGE]
- https://github.com/advisories/GHSA-8g2f-g3gq-5rjv[ADVISORY]
- https://nvd.nist.gov/vuln/detail/CVE-2026-61590[ADVISORY]