CVE-2026-34213: Authorization Guard And Not Equals Bypass

Authorization guard combines multiple '!==' inequality checks with '&&' (AND) before throwing an exception. Because '&&' requires ALL conditions to be true simultaneously, an attacker who satisfies even one check can bypass the guard entirely. Replace '&&' with '||' so that any single mismatch triggers rejection and unauthorized access is prevented. (CVE-202

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-34213-authorization-guard-and-not-equals-bypass --engine opengrep

Description

Authorization guard combines multiple '!==' inequality checks with '&&' (AND) before throwing an exception. Because '&&' requires ALL conditions to be true simultaneously, an attacker who satisfies even one check can bypass the guard entirely. Replace '&&' with '||' so that any single mismatch triggers rejection and unauthorized access is prevented. (CVE-202