Improper access control in LibreChat - CVE-2025-66451
Published: April 27, 2026
LibreChat
Detailed vulnerability description
The vulnerability allows a remote user to modify prompt ownership information and gain unauthorized access to prompts.
The vulnerability exists due to improper access control in the PATCH endpoint for prompt groups (/api/prompts/groups/:groupId) when handling crafted patch requests. A remote user can submit a specially crafted PATCH request with modified author and authorName fields to modify prompt ownership information and gain unauthorized access to prompts.
The issue occurs because the patchPromptGroup function passes req.body directly to updatePromptGroup() without filtering sensitive fields.