- In-house audit
- Other
- LVE-2026-0012
Moderatesettings.py from Django startproject contains DEBUG and a placeholder secret key(LVE-2026-0012)
When the project has just been created, Django assumes you are still at your own computer.
- LVE ID
- LVE-2026-0012
- Verdict
- Development / sample only
- Affected product / version
- Django · Django startproject template · c896b3e
- Published
- 2026-11-28
Description
The settings.py generated by django-admin startproject defaults DEBUG to True and includes a placeholder SECRET_KEY. That looks like debug mode and a hard-coded secret shipping together.
Why it is harmless
This is the project generator’s starting point for local development; Django’s deployment docs require DEBUG off and a fresh SECRET_KEY in production.
The generated key is a per-project placeholder so the dev server can start, not a shared factory password.
This settings file should not be exposed to the public internet before the official deployment checklist is completed.
Location
Read settings.py in the startproject template and the official deployment checklist entries for DEBUG and SECRET_KEY.
References
Show per-metric scoring rationale
DS score and vector · Per-metric breakdownScoring rubric →
PRPrecondition / Required privilege
NNo precondition
Triggers anonymously — the hallmark of a real bug, so no penalty.
+0 / 5
IMReal impact
TTheoretical only
Needs several unlikely conditions to line up before any impact is possible.
+2 / 5
EXReachability in default production config
GDEBUG / dev mode only
Exists only with DEBUG or dev mode on, which the docs say never to enable in production.
+3 / 5
PBPublicity / by design
DWritten in the docs
The official docs already say so; you merely read the docs aloud.
+2 / 4
VBVendor / maintainer behavior
NNormal / no reply / n.a.
No extra baffling behavior — no penalty.
+0 / 4
FPFalse-positive factor
PReal but wildly exaggerated
It happened, but the description or rating is blown wildly out of proportion.
+1 / 4
Total S =8/ 41 →DS 5= min(10, 1 + ⌊S / 2⌋)
Seen something just as lame?
Fill in the form in two minutes. Once a maintainer approves it, your GitHub handle is credited on the entry — permanently.
No account on this site needed — just GitHub.