CVE-2026-23485: Trpc Idor Target User Role Check

The endpoint verifies the role of the requested target user instead of the authenticated context user. An attacker can exploit this by passing the ID of a highly privileged user, bypassing the role check and causing an Insecure Direct Object Reference (IDOR). Ensure authorization validates the context user's role.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-23485-trpc-idor-target-user-role-check --engine opengrep

Description

The endpoint verifies the role of the requested target user instead of the authenticated context user. An attacker can exploit this by passing the ID of a highly privileged user, bypassing the role check and causing an Insecure Direct Object Reference (IDOR). Ensure authorization validates the context user's role.