CVE-2025-57749: Typeorm Tenant Isolation Bypass

Detected a TypeORM query using an OR condition (via an array in `find` or `orWhere` in QueryBuilder) between a static property and a user-related property. This pattern can cause authorization bypasses if the static property was meant to distinguish private or specific types of items but lacks a tenant/user restriction (such as mistakenly doing `type: 'perso

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2025-57749-typeorm-tenant-isolation-bypass --engine opengrep

Description

Detected a TypeORM query using an OR condition (via an array in `find` or `orWhere` in QueryBuilder) between a static property and a user-related property. This pattern can cause authorization bypasses if the static property was meant to distinguish private or specific types of items but lacks a tenant/user restriction (such as mistakenly doing `type: 'perso