CVE-2026-56778: Typeorm Unscoped Or Authorization Bypass

A TypeORM query uses an array for the 'where' option or a Brackets query builder translating to a logical OR in SQL. One of the conditions introduces a user/tenant scoping variable (e.g., userId), while the other lacks it. This permits authorization bypass (IDOR) where an attacker can access globally scoped records if they satisfy the unscoped condition. Ens

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-56778-typeorm-unscoped-or-authorization-bypass --engine opengrep

Description

A TypeORM query uses an array for the 'where' option or a Brackets query builder translating to a logical OR in SQL. One of the conditions introduces a user/tenant scoping variable (e.g., userId), while the other lacks it. This permits authorization bypass (IDOR) where an attacker can access globally scoped records if they satisfy the unscoped condition. Ens