- In-house audit
- Weak password
- LVE-2026-0005
ModerateHard-coded session secrets in official Express examples(LVE-2026-0005)
When the secret is literally a joke sentence, it is not a secret.
- LVE ID
- LVE-2026-0005
- Verdict
- Development / sample only
- Affected product / version
- Express · Express official examples/ directory (not published in the npm package) · 43fca52
- Published
- 2026-11-28
Description
Several demos under examples/ in the Express repository (auth, session, cookies, and others) set session or cookie signing secrets as string literals. Scanners report these as hard-coded secrets.
Why it is harmless
They all live under examples/ and exist to show how middleware is wired, not as a default for production apps.
The secret values are placeholder copy, not real production keys.
The package.json files field publishes only index.js and lib/; examples are not included in the npm package.
Location
Search examples/ for session/cookie secret assignments, and compare with the files field in the root package.json.
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
DTest / debug data only
Only touches test environments, samples or debug data; production data is unharmed.
+3 / 5
EXReachability in default production config
LLocalhost / sample config only
Only appears in a service bound to 127.0.0.1 or in a “for example only” config file.
+3 / 5
PBPublicity / by design
POpenly public all along
The repo is public, the version is on the homepage, the password is in the README — it was never a secret.
+4 / 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.