Skip to main content

LibreChat EUVDEUVD-2026-39461

| CVE-2026-54029 MEDIUM
Missing Authorization (CWE-862)
2026-06-25 GitHub_M
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege user
  2. Delivery
    Observe victim's messageId via shared context or API
  3. Exploit
    Craft DELETE request with own conversationId and victim's messageId
  4. Execution
    Middleware validates conversationId (passes)
  5. Persist
    Handler deletes message using only messageId filter
  6. Impact
    Victim's message permanently destroyed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold a valid authenticated session (registered user account) on the target LibreChat instance - exploitation by unauthenticated parties is not possible. Beyond authentication, the attacker must obtain or guess a valid MongoDB ObjectID (messageId) belonging to another user; ObjectIDs are 12-byte hex strings encoding timestamp, machine ID, process ID, and counter, making random guessing impractical. Exploitation is therefore limited to scenarios where messageIds are observable: shared conversation contexts, API response interception, or privileged log access. Environments where all users are equally trusted (single-user or fully trusted-team deployments) face negligible practical risk. The vulnerability does not require any non-default configuration - the affected endpoint is present in all standard deployments prior to the fix.

Impact

The provided CVSS 3.1 score of 5.3 (AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N) accurately reflects the attack complexity: an authenticated user must obtain a victim's messageId, which is not trivially enumerable. Real-world risk is meaningful in multi-tenant or shared LibreChat deployments where multiple users interact and messageIds may be observable via logs, shared conversations, or API responses. No EPSS data was supplied, and there is no KEV listing or known public POC, suggesting this is not currently being mass-exploited. The I:H metric is appropriate because successful exploitation causes permanent, irrecoverable data loss - deleted messages cannot be restored. Confidentiality and availability are both N per CVSS convention, as no data is disclosed and the service itself remains operational. The primary risk is targeted sabotage or harassment within a shared deployment rather than broad opportunistic exploitation.

Exploit ScenarioDerived

An authenticated attacker on a shared LibreChat instance (e.g., a team or public deployment) obtains a colleague's messageId through a shared conversation view, API response inspection, or server-side log access. The attacker then sends DELETE /api/messages/{their_own_conversationId}/{victim_messageId}, which passes middleware validation (the conversationId is legitimately theirs) and silently deletes the victim's message at the database level with no recovery path. No public POC has been identified, but the logic is straightforward enough that any developer-level user could replicate it from the advisory description.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 25, 2026

Broken object-level authorization in LibreChat's message deletion endpoint allows any authenticated user to permanently delete messages belonging to other users. Affected are all LibreChat deployments prior to 0.8.4-rc1. By supplying their own valid conversationId for middleware validation while targeting a victim's messageId in the underlying MongoDB query, an attacker bypasses the per-user authorization check and irreversibly removes arbitrary messages. No public exploit or CISA KEV listing exists at time of analysis, but the flaw is straightforward to exploit once a valid messageId is obtained.

RemediationAI

Upgrade to LibreChat 0.8.4-rc1 or later, which resolves the issue by adding a user ownership constraint to the deleteMessages MongoDB query so that the filter includes both messageId and the authenticated userId. The vendor advisory is at https://github.com/danny-avila/LibreChat/security/advisories/GHSA-8892-xj8q-59xc. If upgrading immediately is not feasible, operators can mitigate by restricting the DELETE /api/messages/:conversationId/:messageId endpoint at the reverse proxy or API gateway layer to prevent cross-user requests - though this may break legitimate single-user deletion workflows and requires careful testing. Alternatively, temporarily disabling message deletion functionality at the application level eliminates the attack surface without affecting read access. Both workarounds introduce usability trade-offs and should be treated as temporary measures until the patch is applied.

Affected VersionsENISA

LibreChat < 0.8.4-rc1

Affected Packages

euvd librechat fix: 0.8.4-rc1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LibreChat (CPE: cpe:2.3:a:danny-avila:librechat:*:*:*:*:*:*:*:*) is a Node.js-based self-hosted AI chat frontend supporting multiple LLM providers. The vulnerability resides in the DELETE /api/messages/:conversationId/:messageId REST endpoint. The validateMessageReq middleware correctly checks that the conversationId is owned by the requesting user, but the handler subsequently calls deleteMessages({ messageId }) using only the messageId as the MongoDB filter, omitting a userId constraint. This is a textbook CWE-862 (Missing Authorization) pattern: authorization is validated on one attribute (conversationId) while the privileged operation is executed against a different, unchecked attribute (messageId). Because MongoDB ObjectIDs encode a timestamp and machine identifier rather than sequential integers, guessing them is non-trivial, which maps to the AC:H metric in the provided CVSS vector.

Know when Librechat gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY MEDIUM
NVD 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 5.3 MEDIUM

Network-accessible API requires authenticated low-privilege user and knowledge of a non-guessable MongoDB ObjectID (AC:H); deletion causes high integrity loss with no confidentiality or availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
CVSS changed
Jun 29, 2026 - 15:37 NVD
5.3 (MEDIUM) 6.5 (MEDIUM)
Patch available
Jun 25, 2026 - 18:03 EUVD

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular self-hosted open-source AI chat platform, not enterprise-ubiquitous
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2024-11170 HIGH POC
8.8 Mar 20

A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f

CVE-2024-10361 CRITICAL POC
9.1 Mar 20

An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap

CVE-2026-22252 CRITICAL POC
9.1 Jan 12

LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through

CVE-2025-8850 HIGH POC
8.8 Oct 30

LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v

CVE-2025-66450 HIGH POC
8.6 Dec 11

Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to c

CVE-2025-66201 HIGH POC
8.6 Nov 29

LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex

CVE-2025-69222 HIGH POC
8.1 Jan 07

LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests

CVE-2024-11171 HIGH POC
7.5 Mar 20

In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (

CVE-2025-7104 HIGH POC
7.5 Sep 29

A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),

CVE-2025-8849 HIGH POC
7.5 Oct 31

Unbounded `key` and `value` parameters on the LibreChat 0.7.9 memory API (`POST /api/memories` and `PATCH /api/memories/

CVE-2024-11173 MEDIUM POC
6.5 Mar 20

An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead

CVE-2024-10366 MEDIUM POC
6.5 Mar 20

An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy