CVE-2026-42869: Python Hardcoded Secret Env Fallback

`os.environ.get()` is reading a security-sensitive variable (JWT/secret/key/token/password) but supplies a hardcoded string literal as a fallback default. If the environment variable is unset, the application will sign/verify/encrypt with the public, attacker-known fallback (CVE-2026-42869, GHSA-4gxj-hw3c-3x2x). Secrets must have no in-code default — fail cl

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-42869-python-hardcoded-secret-env-fallback --engine opengrep

Description

`os.environ.get()` is reading a security-sensitive variable (JWT/secret/key/token/password) but supplies a hardcoded string literal as a fallback default. If the environment variable is unset, the application will sign/verify/encrypt with the public, attacker-known fallback (CVE-2026-42869, GHSA-4gxj-hw3c-3x2x). Secrets must have no in-code default — fail cl