Authorization bypass through user-controlled key in LibreChat - #VU166577
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote user to access other users' agent avatar images without authorization.
The vulnerability exists due to missing ownership checks in LibreChat's validateImageRequest middleware when secureImageLinks is enabled and image paths match the agent-avatar pattern. A remote user can request another user's avatar through /images/{24-hex}/agent-* to disclose the image despite secure image links being enabled.