CVE-2026-61590: Debug Only Gated Django View

$FUNC is a @csrf_exempt request handler whose only in-view access control is a `settings.DEBUG` check, with no client-origin (loopback / REMOTE_ADDR) restriction anywhere in the view. DEBUG mode is deployment state, not authorization: on any network-reachable interface with DEBUG=True (e.g. a 0.0.0.0-bound staging server), unauthenticated remote clients can

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-61590-debug-only-gated-django-view --engine opengrep

Description

$FUNC is a @csrf_exempt request handler whose only in-view access control is a `settings.DEBUG` check, with no client-origin (loopback / REMOTE_ADDR) restriction anywhere in the view. DEBUG mode is deployment state, not authorization: on any network-reachable interface with DEBUG=True (e.g. a 0.0.0.0-bound staging server), unauthenticated remote clients can