Reliance on Untrusted Inputs in a Security Decision in LibreChat - #VU166586
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote user to create unverified local accounts bound to caller-chosen directory identities and pre-attach access permissions.
The vulnerability exists due to reliance on untrusted identity claims in LibreChat's ensurePrincipalExists function when processing agent-sharing requests with interface.agents.share enabled, creating records without verified issuer bindings. A remote user can submit "source":"entra" with arbitrary email and idOnTheSource values for an agent they can share to create accounts that subsequent legitimate OIDC logins may adopt.