Entertainment community project · Unofficial, not affiliated with CVE / CNVD / NVD · All entries are public information · Disclaimer

LVELVE
  • In-house audit
  • False positive
  • LVE-2026-0004

AbsurdHard-coded SECRET_KEY in the Flask documentation examples(LVE-2026-0004)

Secret scanners are diligent; the docs are equally diligent about saying “don’t commit a real key”.

LVE ID
LVE-2026-0004
Verdict
Documentation only
Affected product / version
Flask · Flask official documentation (not runtime code) · 49943b5
Published
2026-11-28

Description

An example in Flask’s official configuration docs contains a hexadecimal string that looks like a real secret. Secret scanners that scan the repository often report it as a hard-coded credential.

Why it is harmless

  1. The string sits in an “Example configuration” block, showing how to set SECRET_KEY and how to generate one with the secrets module.

  2. The same page bold-warns readers not to leak real keys when asking questions or committing code.

  3. No Flask runtime code reads this documentation example; the framework default for SECRET_KEY is None.

Location

Read the SECRET_KEY section and the “Configuring from Python Files” example in docs/config.rst; compare with the SECRET_KEY default in src/flask/app.py.

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

    XUnreachable (test code / dead code)

    The code never ships in a production build, or can never execute.

    +5 / 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

    FOutright false positive

    The scanner or audit tool got it wrong; the “finding” doesn’t hold up at all.

    +4 / 4

Total S =18/ 41 →DS 10= 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.