CVE-2025-31479: Typer Shows Locals In Exceptions
Initializing a Typer application with default exception handling will print local variables during exception tracebacks. This can inadvertently expose sensitive information such as credentials, API keys, or tokens in standard output and logs. Explicitly pass `pretty_exceptions_show_locals=False` to `Typer()` to prevent this leakage.
greprules fetch cve-2025-31479-typer-shows-locals-in-exceptions --engine opengrepDescription
Initializing a Typer application with default exception handling will print local variables during exception tracebacks. This can inadvertently expose sensitive information such as credentials, API keys, or tokens in standard output and logs. Explicitly pass `pretty_exceptions_show_locals=False` to `Typer()` to prevent this leakage.
Detection target
Not provided
Recommended fix
Not provided
False-positive notes
Not provided
Community feedback
Sign in to report false positives, mark this rule useful, or suggest metadata improvements.