CVE-2026-40069: Case Sensitive Constant Inclusion Bypass

Checking dynamically extracted fields (e.g., API responses) against constant allowlists, blocklists, or markers without normalizing case can allow alternate casings to bypass validation logic. Attackers or upstream APIs returning 'invalid' instead of 'INVALID' can silence errors. Always normalize string inputs using `.upcase` or `.downcase` before membership

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Ruby
greprules fetch cve-2026-40069-case-sensitive-constant-inclusion-bypass --engine opengrep

Description

Checking dynamically extracted fields (e.g., API responses) against constant allowlists, blocklists, or markers without normalizing case can allow alternate casings to bypass validation logic. Attackers or upstream APIs returning 'invalid' instead of 'INVALID' can silence errors. Always normalize string inputs using `.upcase` or `.downcase` before membership