vetkit.py.django.hardcoded-secret-key
A Django settings module hard-codes SECRET_KEY. Anyone with the source can forge sessions, password-reset tokens and signed data.
Last updated:
Suite: Security
python
A Django settings module hard-codes SECRET_KEY. Anyone with the source can forge sessions, password-reset tokens and signed data.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Load SECRET_KEY from the environment or a secret manager and rotate the committed value.
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.