Reliance on Untrusted Inputs in a Security Decision in LibreChat - #VU166575
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote user to take over existing accounts and potentially gain administrator privileges.
The vulnerability exists due to reliance on untrusted directory-principal identity data in LibreChat's ensurePrincipalExists function when processing resource-sharing permission updates for accounts without an existing source identity binding. A remote user can submit a crafted permission update containing source: 'entra', a victim's email, and their own idOnTheSource, then authenticate through OpenID to access the victim's account, potentially retaining administrator privileges depending on role mapping.