Input Validation Flaw in LibreChat's PATCH API Endpoint
CVE-2025-66451
5.3MEDIUM
What is CVE-2025-66451?
LibreChat, a variant of ChatGPT with enhanced functionalities, presents a critical input validation issue in versions up to 0.8.0. This security flaw allows users to craft JSON requests that improperly modify prompt definitions through the PATCH endpoint intended for prompt groups. Specifically, the patchPromptGroup function does not sufficiently filter sensitive fields before passing req.body to the updatePromptGroup function. This oversight can potentially lead to unintended modifications, affecting the application's expected behavior and integrity. Users are advised to upgrade to version 0.8.1 or later, which addresses this vulnerability.
Affected Version(s)
LibreChat < 0.8.1
