CVE-2026-41895: Python Falsy Validation Bypass

Extracting a dictionary value via `get()` and relying on its truthiness before applying validation can lead to bypasses. Explicit falsy values (e.g., `""` or `null`) sent by a user will evaluate to False, short-circuiting the negative validation block (like `if not is_valid(...)`). The falsy value then sidesteps validation but still remains part of the expli

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-41895-python-falsy-validation-bypass --engine opengrep

Description

Extracting a dictionary value via `get()` and relying on its truthiness before applying validation can lead to bypasses. Explicit falsy values (e.g., `""` or `null`) sent by a user will evaluate to False, short-circuiting the negative validation block (like `if not is_valid(...)`). The falsy value then sidesteps validation but still remains part of the expli