- In-house audit
- Information disclosure
- LVE-2026-0015
ModerateError stack traces in Gin’s default debug mode(LVE-2026-0015)
The framework assumes you are still developing; production mode is a door you have to walk through.
- LVE ID
- LVE-2026-0015
- Verdict
- Development / sample only
- Affected product / version
- Gin · Gin (default debug mode) · 0f09c3a
- Published
- 2026-11-28
Description
In its default debug mode, Gin prints a full stack trace when handling a crash. That looks like a detailed error-information leak.
Why it is harmless
Debug is the default for local development; the framework provides ReleaseMode for production.
Official guidance requires switching to release mode in production, which turns this kind of debug output off.
Whether a stack trace is exposed depends on whether the mode is switched at deploy time, not on the framework lacking a switch.
Location
Read how the default mode and ReleaseMode are defined in Gin, and the documentation on switching mode for production.
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
NNo security impact at all
No change to confidentiality, integrity or availability — filing it as a “vulnerability” is the biggest impact.
+5 / 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 =11/ 41 →DS 6= 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.