CVE-2026-34531: Missing Token Truthiness Check

An authentication token is retrieved with an empty string default and passed directly to a validation callback without checking its truthiness. If the underlying data store contains an empty string token, this could lead to authentication bypass. Ensure the token is validated to be truthy before passing it to the validator.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-34531-missing-token-truthiness-check --engine opengrep

Description

An authentication token is retrieved with an empty string default and passed directly to a validation callback without checking its truthiness. If the underlying data store contains an empty string token, this could lead to authentication bypass. Ensure the token is validated to be truthy before passing it to the validator.