Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.django.debug-enabled

A Django settings module sets DEBUG = True unconditionally. Deployed with it, error pages leak source code, settings and environment details.

Last updated:

Suite: Security

python

A Django settings module sets DEBUG = True unconditionally. Deployed with it, error pages leak source code, settings and environment details.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Read DEBUG from the environment with a False default and keep True only in local settings files.

References

Source: packages/engine/rules/sast/python.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.