All vulnerabilities

Servers and applications

CVE-2026-54026

Cross-User Message Injection via Parameter Confusion in LibreChat

Severity
Medium 6.5
Published
17 Nov 2026
Last changed
17 Nov 2026
Added to UpHeron
17 Nov 2026
Fixed in
0.8.6
Weakness
Improper access control (CWE-284)Authorization bypass through a user-controlled key (IDOR) (CWE-639)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Also known as
GHSA-7w78-4qpx-xhfg
Sources
Project advisories (GitHub)

Description

A parameter confusion vulnerability exists in LibreChat's message creation endpoint that allows an authenticated attacker to inject messages into another user's private conversation.

The authorization middleware (validateMessageReq.js) validates conversation ownership using req.params.conversationId from the URL path. However, the message handler (messages.js) consumes req.body.conversationId from the request body when saving the message to the database. These two values are never cross-validated.

The middleware and handler operate on different sources for the same logical parameter. The middleware confirms the authenticated user owns the conversation identified in the URL, but the handler writes the message to whichever conversation is specified in the request body -- which is never checked for ownership.

The code assumes that req.params.conversationId (validated) and req.body.conversationId (consumed) will always refer to the same conversation.

From LibreChat-AI/LibreChat's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LibreChatServers and applications · github:librechat-ai/librechat
  • Every version before 0.8.6

About LibreChat

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

From its GitHub repository.
Docker Hub pulls
669,094Docker Hub, 15 Nov 2026
GitHub stars
47,138GitHub, 15 Nov 2026
Forks
9,706GitHub, 15 Nov 2026
License
MITGitHub
First published on GitHub
12 Feb 2023GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54026
  • GitHub Advisory Database https://github.com/advisories/GHSA-7w78-4qpx-xhfg
  • github.com https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-7w78-4qpx-xhfg