/

CVE-2026-61590

Severity:

HIGH RISK

(7.4)

Missing Authentication (CWE-306) in djust Observability

CVE-2026-61590

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306, CWE-668

Impact:

Unauthorized information disclosure and remote method invocation

Severity:

HIGH RISK

(7.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

djust observability endpoints can expose live view and session state and may allow remote method invocation when DEBUG is enabled without the documented localhost-restricting middleware.

A non-localhost client able to reach the endpoints could read application data or invoke permitted handlers, creating confidentiality and integrity risks.

Affected context

The issue occurs in djust deployments where observability endpoints are reachable by non-local clients, DEBUG remains enabled, and the localhost restriction middleware has not been installed. The documented setup could leave endpoint protection dependent on optional middleware rather than enforcement within each view.

Exploit preconditions

  • Attack surface: djust observability endpoints exposed through the Django application
  • Required access: Network connectivity to the exposed endpoints; valid application authentication may not be required depending on deployment configuration
  • Trigger point: Requests to endpoints that expose live view or session state, or to the eval_handler remote invocation surface
  • Why exploitation is possible: Endpoint access relies on DEBUG and optional middleware controls, allowing non-localhost requests when the restriction is absent

Why this happens

The underlying weakness is missing authentication and incomplete authorization enforcement on sensitive observability views. Access control was applied through an opt-in middleware that documented setup did not necessarily install, while the views primarily checked DEBUG status. This maps to CWE-306: Missing Authentication for Critical Function, with a related CWE-668: Exposure of Resource to Wrong Sphere, because internal diagnostic state and handler functionality could be exposed beyond the intended local administration boundary.

Potential impact

  • Attackers may read live view, session, or application state
  • Unauthorized requests could invoke exposed server-side handlers
  • Sensitive data may be disclosed through observability responses
  • Application behavior or state could be altered through remote method invocation
  • The issue could provide a foothold for further application compromise

General mitigation guidance

Mitigation typically focuses on enforcing access control at the endpoint itself rather than depending on separately installed middleware.

Common defensive patterns include:

  • Keeping DEBUG disabled in production environments
  • Restricting observability endpoints to localhost or a tightly controlled administrative network
  • Requiring strong authentication and explicit authorization for diagnostic and invocation functions
  • Applying deny-by-default routing and network policy to internal endpoints
  • Limiting remote invocation to narrowly defined, non-sensitive operations
  • Running the application with least privilege and minimizing exposed management interfaces

These controls reduce reliance on deployment-specific middleware configuration and limit the effect of accidental endpoint exposure.

How teams detect issues like this

Organizations commonly detect this class of issue through:

  • Static analysis and code review checks for views that expose sensitive state without explicit authentication
  • Searches for DEBUG-only access decisions on administrative or observability endpoints
  • Review of routes exposing dynamic method invocation or handler dispatch
  • Integration tests that request internal endpoints from non-local clients and verify non-disclosing denial responses
  • Web application firewall, reverse-proxy, and network-policy rules restricting observability paths
  • Monitoring for unexpected access to diagnostic endpoints or unusual handler invocation patterns

Automated application-security testing and policy checks can help identify endpoint exposure during CI and deployment reviews.

Sources

SourceLink
github.comgithub.com/djust-org/djust/releases/tag/v1.0.7
github.comgithub.com/djust-org/djust/security/advisories/GHSA-8g2f-g3gq-5rjv

Frequently asked

questions

It can be remotely reachable when the observability endpoints are exposed to a network and the localhost restriction is not enforced. The documented misconfiguration requires DEBUG to remain enabled and the optional middleware to be absent.

The attacker needs network access to the relevant Django endpoints. Whether application authentication is also required depends on the surrounding deployment and route configuration.

Enforce localhost or administrative-network restrictions directly in every observability view, require authentication and authorization, and keep DEBUG disabled in production.

Treat diagnostic endpoints as privileged interfaces, apply deny-by-default access policies, test them from untrusted network positions, and avoid making security controls depend on optional middleware installation.

Find out what's already
exploitable in your codebase.