CVE-2026-54306: N8n Typeorm Unintended Or Query Bola

Unintended OR condition in TypeORM `where` or `orWhere` statement. The query combines a user-specific constraint with a generic `type` check, resulting in an OR logic that inadvertently scopes access to all records matching the generic type. This leads to BOLA and improper access control.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-54306-n8n-typeorm-unintended-or-query-bola --engine opengrep

Description

Unintended OR condition in TypeORM `where` or `orWhere` statement. The query combines a user-specific constraint with a generic `type` check, resulting in an OR logic that inadvertently scopes access to all records matching the generic type. This leads to BOLA and improper access control.