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.
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.
Ensure DEBUG=False in production, and do not expose the observability endpoints to untrusted networks.
{
"cwe_ids": [
"CWE-306",
"CWE-668"
],
"github_reviewed": true,
"github_reviewed_at": "2026-09-16T13:49:19Z",
"nvd_published_at": null,
"severity": "HIGH"
}