LibreChat — Vulnerability (CVE-2025-66451)
Date: 2025-12
Affected: librechat/librechat
Attack vector: other
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2025-66451
CWE: CWE-20
CWE-915
CVSS: 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N)

LibreChat is a ChatGPT clone with additional features. In versions 0.8.0 and below, when creating prompts, JSON requests are sent to define and modify the prompts via PATCH endpoint for prompt groups (/api/prompts/groups/:groupId). However, the request bodies are not sufficiently validated for proper input, enabling users to modify prompts in a way that was not intended as part of the front end system. The patchPromptGroup function passes req.body directly to updatePromptGroup() without filtering sensitive fields. This issue is fixed in version 0.8.1.


Mitigations:

Architectural layers (MAESTRO):