Reliance on Untrusted Inputs in a Security Decision in LibreChat - #VU166575

 

Reliance on Untrusted Inputs in a Security Decision in LibreChat - #VU166575

Published: November 18, 2026


Vulnerability identifier: #VU166575
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-807
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

LibreChat

Remediation

Install security update from vendor's website.

LibreChat - update to 0.8.9

External References

Related Security Bulletins