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

 

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

Published: November 18, 2026


Vulnerability identifier: #VU166586
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/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 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.


Affected software

LibreChat

Remediation

Install security update from vendor's website.

LibreChat - update to 0.8.9

External References

Related Security Bulletins