# CVE-2026-54029: danny-avila LibreChat IDOR in message deletion endpoint

Source: https://junglewise.ai/threats/cve-2026-54029-danny-avila-librechat-idor-in-message-deletion-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-25. Updated: 2026-06-25  
License: CC BY 4.0 with a link back

CVE-2026-54029 · Severity: medium · CVSS 5.3 · Published 2026-06-25

LibreChat, a popular open-source interface for AI models like ChatGPT, contains a security flaw that allows any logged-in user to delete messages belonging to other users. By exploiting this issue, an attacker can permanently and irrecoverably remove chat history across the platform. This can lead to significant data loss and disruption for users who rely on the service to store their AI interactions.

Technologies: [LibreChat](https://junglewise.ai/threats/technologies/librechat). Vendors: [LibreChat](https://junglewise.ai/threats/vendors/librechat).

## Quick answers

**Is CVE-2026-54029 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-54029 being exploited in the wild.

**How severe is CVE-2026-54029?** Medium severity, with a CVSS score of 5.3, published 25 June 2026.

**Which products and versions are affected?** LibreChat < 0.8.4-rc1.

**Is there a fix for CVE-2026-54029?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-54029 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-54029?** Check whether you run LibreChat at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An Insecure Direct Object Reference (IDOR) vulnerability exists in the message deletion logic of LibreChat. The `validateMessageReq` middleware only verifies that the `conversationId` provided in the URL belongs to the authenticated user, but it fails to validate the `messageId`. The underlying `deleteMessages` handler then executes a MongoDB `deleteMany` operation using only the `messageId` as a filter, without enforcing a user-ownership constraint. An attacker can bypass authorization by providing a `conversationId` they own alongside a target `messageId` belonging to another user. This issue was an incomplete fix for a previous vulnerability (CVE-2024-41703) and is resolved in version 0.8.4-rc1.

## Affected products

- danny-avila LibreChat < 0.8.4-rc1

## Timeline

- 2026-06-02: advisory: GitHub Security Advisory published
- 2026-06-25: disclosed: CVE published to NVD

## References

- [https://github.com/danny-avila/LibreChat/security/advisories/GHSA-8892-xj8q-59xc](https://github.com/danny-avila/LibreChat/security/advisories/GHSA-8892-xj8q-59xc)

## Related threats

- [LibreChat 2FA bypass via unauthenticated backup code regeneration](https://junglewise.ai/threats/cve-2026-54040-librechat-2fa-bypass-via-unauthenticated-backup-code-regeneration)
- [LibreChat resource exhaustion via missing rate limiting in duplicate endpoint](https://junglewise.ai/threats/cve-2026-54037-librechat-resource-exhaustion-via-missing-rate-limiting-in)
- [LibreChat SSRF via custom endpoint baseURL](https://junglewise.ai/threats/cve-2026-54033-librechat-ssrf-via-custom-endpoint-baseurl)
- [LibreChat token theft via missing OAuth resource validation in MCP](https://junglewise.ai/threats/cve-2026-54030-librechat-token-theft-via-missing-oauth-resource-validation-in)
- [LibreChat missing authorization in image upload endpoint](https://junglewise.ai/threats/cve-2026-54027-librechat-missing-authorization-in-image-upload-endpoint)
