CVE-2026-54029: LibreChat Unauthorized Message Deletion Vulnerability
LibreChat, a self-hosted ChatGPT alternative that integrates multiple AI providers, contains an authorization flaw in its message deletion endpoint. An authenticated attacker can delete any other user's messages by exploiting a gap between authentication (which checks conversation ownership) and authorization (which does not check message ownership). The attacker supplies their own valid conversation ID to bypass initial validation, then targets a victim's message ID for deletion. Messages deleted this way cannot be recovered. The vulnerability affects all versions before 0.8.4-rc1 and is resolved in that release.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.3 MEDIUM · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
- Weaknesses (CWE)
- CWE-862
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-25 / 2026-06-29
NVD description (verbatim)
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the DELETE /api/messages/:conversationId/:messageId endpoint allows any authenticated user to delete any other user's messages. The validateMessageReq middleware only validates that the conversationId belongs to the requesting user, but the handler calls deleteMessages({ messageId }) using only the messageId as the MongoDB filter — without adding a user constraint. An attacker provides their own valid conversationId (to pass validation) and the victim's messageId (to target deletion), resulting in permanent, irrecoverable message deletion. This vulnerability is fixed in 0.8.4-rc1.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The DELETE /api/messages/:conversationId/:messageId endpoint in LibreChat implements incomplete authorization logic. The validateMessageReq middleware correctly verifies that the requesting user owns the conversationId parameter, but the subsequent deleteMessages handler uses only the messageId as a MongoDB query filter—omitting any check that the message belongs to the requesting user. This allows an attacker to construct a request using (1) their own conversationId (which passes validation) and (2) a victim's messageId (harvested or guessed), resulting in deletion of that message regardless of ownership. The vulnerability stems from CWE-862 (Missing Authorization) and is classified as an Insecure Direct Object Reference (IDOR) variant. CVSS 3.1 score is 5.3 (MEDIUM), reflecting high integrity impact but no confidentiality or availability impact to the broader system.
Business impact
Message deletion is a data destruction attack with direct operational and compliance consequences. In shared LibreChat instances—common in organizations, research teams, and managed service deployments—an attacker can erase conversation history of other users without audit trail or recovery. This impacts data retention policies, regulatory compliance (e.g., communications preservation rules), incident investigation capabilities, and user trust. For enterprises using LibreChat as part of an AI collaboration platform, this creates unacceptable risk of message tampering and loss. The permanent nature of deletion (no soft-delete mechanism mentioned) elevates severity beyond typical UI-layer authorization flaws.
Affected systems
LibreChat versions prior to 0.8.4-rc1 are affected. This includes all 0.8.3, 0.8.2, 0.8.1, 0.8.0 releases and any earlier versions. Self-hosted LibreChat deployments and managed instances are in scope. The vulnerability requires authentication—an attacker must have valid user credentials on the target LibreChat instance. Exploitation is not limited by message age, conversation scope, or user role (all authenticated users are equally affected). Downstream consumers or integrations that embed LibreChat's API are potentially exposed if they do not impose additional authorization layers.
Exploitability
Exploitability is moderate but practical. The attack requires (1) valid authentication credentials (easily obtained if the instance is accessible or if credentials are compromised), (2) knowledge or enumeration of a target's messageId (potentially discoverable via UI inspection, API introspection, or by observing shared conversations), and (3) knowledge of the attacker's own conversationId (trivial—the attacker can create one). No special network position, timing, or user interaction is required. CVSS AC:H (high attack complexity) likely reflects the need to gather target messageIds; in real-world scenarios where users share conversations or message IDs are predictable, complexity may be lower. Once exploited, the impact is immediate and irreversible.
Remediation
Upgrade LibreChat to version 0.8.4-rc1 or later. The fix ensures that the deleteMessages handler validates both conversationId and messageId ownership against the requesting user before executing deletion. Organizations unable to upgrade immediately should restrict API access to trusted internal networks, enforce strict access controls on LibreChat credentials, and audit deleteMessages endpoint calls. Consider implementing read-only backups or message archival outside LibreChat to preserve critical conversation history. No workarounds are available at the application layer without code modification.
Patch guidance
Update to LibreChat 0.8.4-rc1 as the minimum fixed version. Release candidates are typically stable but less battle-tested than full releases; monitor release notes for progression to 0.8.4 stable or subsequent patches. Before deploying, test in a non-production environment to confirm compatibility with your configuration (AI provider integrations, custom plugins, reverse proxy settings). The fix is a logic change in the message deletion handler—no database schema changes or data migrations are expected. After patching, verify that users can still delete their own messages and that cross-user deletion attempts fail with a 403 Forbidden or equivalent error.
Detection guidance
Monitor DELETE /api/messages endpoint requests in access logs, focusing on patterns where conversationId and messageId ownership do not align. Look for (1) repeated 200 OK responses to message deletions in conversations not owned by the request source, (2) bulk deletion activity from low-privilege accounts, or (3) successful deletions preceded by API reconnaissance (OPTIONS or GET requests probing messageIds). Enable application-level logging if available to capture request parameters and user IDs. Correlate deletion patterns with user authentication logs to identify compromised accounts or insider threats. In immutable audit systems, log every deleteMessages attempt with full request parameters to enable forensic reconstruction.
Why prioritize this
Although CVSS is 5.3 (MEDIUM), this vulnerability warrants priority patching because (1) it enables permanent, non-repudiable data destruction by authenticated users, (2) affected systems likely store sensitive multi-user conversations (AI interactions, research, internal discussions), (3) no compensating controls are standard in LibreChat deployments, and (4) the fix is proven and low-risk. Organizations with compliance obligations around message retention or data integrity should treat this as high priority. For open-source instances or labs, priority can be lower; for production shared deployments, prioritize within your critical security patch window.
Risk score, explained
CVSS 3.1 5.3 reflects the specific constraint that authentication is required (PR:L), the attack is partially complex due to target enumeration (AC:H), and the system scope is unchanged (S:U). Integrity is high (I:H) because messages are permanently destroyed. Confidentiality and availability are not affected. SEC.co notes that CVSS may underweight the business and compliance impact of data destruction in collaborative settings; risk assessment should include your organization's data retention and incident response policies.
Frequently asked questions
Can I tell if my messages were deleted by this vulnerability?
Not easily. LibreChat does not appear to log message deletions per user or provide an audit trail distinguishing authorized deletion from exploitation. If you notice conversations with gaps or missing messages, and you did not delete them, you may have been targeted. Check with other users and your LibreChat administrator to review server logs (if retention is enabled) or to confirm the deployment has been patched.
Does this vulnerability allow reading other users' messages, or only deletion?
Only deletion. The vulnerability is an authorization bypass in the delete endpoint specifically. An attacker cannot read, modify, or export other users' messages using this flaw. However, the presence of this vulnerability may indicate incomplete authorization checks elsewhere in the application—a full security audit is recommended post-patch.
If LibreChat is behind a VPN or firewall, am I safe?
Network isolation reduces attacker reach (fewer threat actors can authenticate), but does not eliminate the risk. Any insider, compromised employee account, or misconfigured access control that allows unauthorized authentication can exploit this. Patch regardless of network posture.
What should I do if I suspect deletion attacks have already occurred?
Check server logs and backups immediately. If available, restore messages from database snapshots or backups taken before the suspected attack window. Audit authentication logs for suspicious login patterns. Patch to 0.8.4-rc1, then conduct a post-incident review to identify how the attacker obtained credentials. Consider password resets for affected users and enable multi-factor authentication if not already in place.
This analysis is provided for informational and educational purposes. SEC.co makes no warranty regarding accuracy, completeness, or fitness for a particular purpose. CVSS scores and CVE details are sourced from authoritative databases and may be subject to revision. Organizations should verify all patch versions and affected product versions against vendor advisories before deploying mitigations. Testing in non-production environments is mandatory. Consult your organization's security and compliance teams before taking action. SEC.co is not liable for damages resulting from reliance on this information. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-54027MEDIUMLibreChat Authorization Bypass in Image Upload Endpoint
- CVE-2026-31942HIGHLibreChat IDOR Vulnerability Allows Unauthorized API Key Manipulation
- CVE-2022-42479MEDIUMMissing Authorization in TemplateHouse Soledad – MEDIUM Severity Access Control Bypass
- CVE-2022-45813MEDIUMBeRocket Advanced AJAX Product Filters Missing Authorization Flaw
- CVE-2023-25969MEDIUMMissing Authorization in ThemeHunk Contact Form Plugin
- CVE-2023-32959MEDIUMMetroStore Missing Authorization Vulnerability – Patch Guide
- CVE-2024-24709MEDIUMShareaholic Missing Authorization Vulnerability – Update Required
- CVE-2024-31435MEDIUMMissing Authorization in Inisev Social Media & Share Icons Plugin—Patch Guidance