CVE-2026-114108: Python Fastapi Auth Dependency Fail Open

Auth dependency $FUNC fails open: when the configured credential ($KEY) is unset, the guard `if not $KEY: return` ends the check without rejecting the request or restricting it to loopback clients. On any network-reachable deployment the whole protected API surface is then served unauthenticated. Fail closed instead: raise when the credential is not configur

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-114108-python-fastapi-auth-dependency-fail-open --engine opengrep

Description

Auth dependency $FUNC fails open: when the configured credential ($KEY) is unset, the guard `if not $KEY: return` ends the check without rejecting the request or restricting it to loopback clients. On any network-reachable deployment the whole protected API surface is then served unauthenticated. Fail closed instead: raise when the credential is not configur