Skip to main content

LibreChat CVE-2026-54044

| EUVDEUVD-2026-131853 HIGH
Insufficiently Protected Credentials (CWE-522)
2026-11-20 security-advisories@github.com
7.7
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Obtain EDIT permission on shared agent
  2. Delivery
    POST swaps action domain/raw_spec to attacker host
  3. Exploit
    Owner credential retained, repointed to attacker URL
  4. Execution
    Victim tool invocation decrypts and sends Bearer key
  5. Impact
    Owner API key exfiltrated to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
Exploitation Conditions

Exploitation requires an authenticated user who has been granted EDIT permission (PermissionBits.EDIT) on a shared LibreChat agent, and that agent must have an Action configured with a stored credential (metadata.auth.api_key used as Bearer/Basic/Custom-header, or OAuth client_id/client_secret). The attacker repoints the action by setting metadata.domain and raw_spec (servers[0].url) to an external host they control; the SSRF allow-list only blocks private IPs/localhost, so any public attacker domain passes. The secret is only disclosed when someone with VIEW or above subsequently invokes that tool in a chat and the model selects it, so the leak is triggered by a later legitimate invocation rather than by the attacker directly. Limiting factors: the attacker must already hold owner-granted EDIT sharing, a stored-credential Action must exist, and a later tool invocation must occur - but no non-default configuration is otherwise needed since EDIT sharing and bearer-key Actions are documented default-path features.

Impact

Signals are moderately consistent and point to a real but access-gated issue rather than a mass-exploitation emergency. The input CVSS of 7.7 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N) and my independent assessment agree: network vector, low complexity, but PR:L - the attacker must already be an authenticated collaborator holding EDIT permission on a shared agent, so this is an insider/abuse-of-granted-trust model, not an anonymous internet attack. Scope is Changed and confidentiality High because a low-privilege editor causes the owner's secret to cross a trust boundary to an attacker-controlled host. No EPSS score is provided and the CVE is NOT in CISA KEV, so there is no public active-exploitation signal; exploitation status is best described as no confirmed active exploitation, though a detailed proof-of-concept is published inside the GHSA advisory and the reporter states it was confirmed end-to-end against the official v0.8.6 image. The vuln.today Decision label is 'this_week' (not act_now/emergency), aligning with a high-severity, patch-this-week priority rather than drop-everything. Net: a genuine credential-exfiltration flaw worth prompt patching for anyone using shared agents with stored Action credentials, but its blast radius is bounded by requiring EDIT sharing and stored secrets, so it is not a widespread unauthenticated RCE-class threat.

Exploit ScenarioDerived

An authenticated collaborator granted EDIT permission on a shared agent sends a single POST /api/agents/actions/:agent_id that swaps the action's OpenAPI spec and domain to an attacker-controlled host while the owner's encrypted api_key stays attached to the record. The next time any user with VIEW or above (including the owner) invokes that tool, LibreChat decrypts the owner's credential and sends it as Authorization: Bearer to the attacker's server. A working proof-of-concept is published in the GHSA advisory and was confirmed end-to-end by the reporter; attack complexity is low (AC:L) and no user interaction by the attacker is needed beyond the one request.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 20, 2026

Credential exfiltration in LibreChat prior to 0.8.7 allows an authenticated collaborator who holds EDIT permission on a shared agent to repoint that agent's Action to an attacker-controlled host, so the owner's stored Action API key or OAuth client secret is transmitted to that host on the next tool invocation. The editor never reads or invokes anything: a single POST to /api/agents/actions/:agent_id overwrites metadata.domain and metadata.raw_spec while the spread merge preserves the owner's encrypted metadata.api_key, and any later chat by a user with VIEW or above - including the owner - decrypts that secret and sends it as an Authorization header to the new destination. Exploitation is access-gated rather than open: it requires owner-granted EDIT sharing, a pre-existing Action with stored credentials, and a subsequent legitimate tool invocation, but no non-default configuration. Fixed in v0.8.7; no CISA KEV entry is recorded, and the GHSA advisory includes a confirmed end-to-end reproduction against v0.8.6.

RemediationAI

Upgrade to LibreChat v0.8.7, which contains commit 07af6ee288 (PR #13559) and enforces credential re-entry when an Action's destination or auth trust boundary changes; per the vendor changelog at librechat.ai/changelog/v0.8.7 and the advisory at github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-qh43-24gm-5j57, the fix also deletes stored OAuth tokens when an action is repointed. Because the vulnerable write is silent - sensitive fields were stripped from the response while the merged record kept them - treat any agent with stored-credential Actions that has been shared at EDIT as potentially compromised and rotate the affected API keys and OAuth client secrets at the upstream provider after patching. If immediate upgrade is not possible, reduce exposure by removing EDIT grants on agents whose Actions hold credentials (downgrading collaborators to VIEW prevents the spec swap) or by deleting stored credentials from Actions on shared agents until the instance is patched, accepting that either measure breaks collaborative spec editing or tool authentication for those agents. Prioritize within the normal weekly patch cycle indicated by the current decision label rather than as an emergency, since exploitation requires owner-granted EDIT access and a subsequent tool invocation.

Affected VersionsENISA

LibreChat < 0.8.7

Affected Packages

euvd librechat fix: 0.8.7

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's Actions feature lets an agent owner attach an OpenAPI-described tool and store credentials for it (metadata.auth.api_key, or OAuth client_id/client_secret), encrypted at rest and transmitted as Authorization: Bearer/Basic/Custom-header by RequestExecutor.setAuth, which posts to the spec's servers[0].url. The root cause is CWE-522 (insufficiently protected credentials), with the advisory additionally classifying it as CWE-863 (incorrect authorization): the update handler's merge at api/server/routes/agents/actions.js performed metadata = { ...action.metadata, ...metadata } after loading the existing record with include-sensitive=true, so the owner's auth/api_key survived while the editor's domain and raw_spec overwrote the request target; because actionUpdateData.user was only set on the new-action branch, the record kept the original owner as credential holder, and the response stripped sensitive fields so the persistence of the secret was invisible. The SSRF allow-list only rejects private IPs and localhost, so any public attacker domain validated cleanly, and the existing maxRedirects: 0 defense was irrelevant because the request lands directly on the attacker host. OAuth-metadata validation hardening did not cover this service_http/bearer path. The v0.8.7 fix (commit 07af6ee288, PR #13559) introduces planAgentActionUpdate to detect trust-boundary changes and returns ACTION_CREDENTIAL_REFRESH_MESSAGE requiring credential re-entry, plus buildActionOAuthTokenDeleteQueries/deleteActionOAuthTokens to purge OAuth tokens when an action is repointed, keeping the callback URL stable while preventing old tokens from following a new target.

Know when the next one hits your stack

  • 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) PRIMARY 7.7 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
vuln.today AI 7.7 HIGH

Authenticated editor so PR:L; low-complexity single request so AC:L; owner's secret crosses to attacker host so S:C with C:H, and no integrity/availability impact so I:N/A:N.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
Nov 20, 2026 - 22:04 EUVD
CVE Published
Nov 20, 2026 - 20:17 cve.org
HIGH 7.7

DescriptionCVE.org

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.7, POST /api/agents/actions/:agent_id in api/server/routes/agents/actions.js loads an existing action with owner credentials and merges editor-controlled metadata.domain and metadata.raw_spec while preserving metadata.api_key and related OAuth client secrets. A collaborator with EDIT permission can repoint an action to an attacker-controlled host, and a later tool invocation decrypts and sends the retained owner credential to that destination. This issue is fixed in version 0.8.7.

Technical POC Analysis

The defect is CWE-522 (Insufficiently Protected Credentials), compounded by CWE-863 (Incorrect Authorization).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity credential exfiltration flaw in LibreChat (prior to version 0.8.7) lets any user granted EDIT access on a shared agent reroute that agent's Action to an attacker-controlled server, causing the owner's stored API keys or OAuth client secrets to be silently transmitted. Because the leak triggers on the next ordinary tool invocation - including by the owner - stolen credentials can surface without anyone noticing, exposing access to third-party services and data across all teams using shared agents.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis for versions prior to 0.8.7; interim mitigations: restrict EDIT sharing on agents with stored Action credentials, temporarily disable or remove stored API keys/OAuth secrets from shared agents, limit Action destinations via egress allowlisting, and monitor outbound traffic and agent metadata changes until upgrade to v0.8.7.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
popular open-source self-hosted LLM chat app, moderate production footprint
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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