/

CVE-2026-54044

Severity:

HIGH RISK

(7.7)

Credential Exfiltration (CWE-863) in LibreChat Actions

CVE-2026-54044

Awaiting Analysis

Vulnerability type

Category:

Authorization Failure and Credential Exfiltration

CWE:

CWE-522, CWE-863

Impact:

Disclosure and potential misuse of stored credentials

Severity:

HIGH RISK

(7.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

LibreChat agent actions can expose an owner's API key or OAuth client secrets when an editor changes action metadata to point to an attacker-controlled host. The retained credentials may be sent to that host when the action is invoked later.

Affected context

The issue occurs in LibreChat's agent action update flow when an existing action contains owner credentials and a collaborator has EDIT permission. If editor-controlled domain metadata can be changed without appropriately protecting the retained credentials, a later tool invocation may send those credentials to the configured destination.

Exploit preconditions

  • Attack surface: The agent actions update endpoint and subsequent tool invocation
  • Required access: EDIT permission on an affected agent action
  • Trigger point: An action is invoked after its destination metadata has been changed
  • Why exploitation is possible: The update can alter the destination while preserving owner credentials, which may then be sent to that destination

Why this happens

The update flow does not sufficiently constrain how a collaborator's permission to edit action metadata interacts with owner-held credentials. This is an authorization failure (CWE-863) that can expose credentials, also relating to CWE-522: Insufficiently Protected Credentials. Insecurely combining editor-controlled destinations with retained secrets allows a later invocation to disclose those secrets outside the intended trust boundary.

Potential impact

  • Owner API keys or OAuth client secrets could be disclosed to an attacker-controlled host.
  • Exposed credentials may be used to access connected services or consume their resources.
  • Affected integrations could be abused, and owners may need to investigate potential credential misuse.

General mitigation guidance

Defensive patterns include separating permission to edit action metadata from authority to handle owner credentials, and rechecking authorization when sensitive fields or destinations change. Bind secrets to approved destinations, avoid forwarding credentials to untrusted or user-controlled hosts, and require explicit owner approval before changing sensitive integration settings. Store and handle secrets using least-privilege access, and minimize their exposure during tool execution.

How teams detect issues like this

Review action update handlers for merges that combine collaborator-controlled metadata with retained secrets. Use static analysis and code review to flag authorization checks that do not account for sensitive fields or destination changes. Audit logs and policy checks can identify destination changes by collaborators and tool calls that send credentials to newly configured hosts. Automated security reviews may help surface these patterns.

Sources

SourceLink
github.comgithub.com/LibreChat-AI/LibreChat/commit/07af6ee288b1fdb610105ffbac7c1f34103a8f46
github.comgithub.com/LibreChat-AI/LibreChat/pull/13559
github.comgithub.com/LibreChat-AI/LibreChat/releases/tag/v0.8.7
github.comgithub.com/LibreChat-AI/LibreChat/security/advisories/GHSA-qh43-24gm-5j57
librechat.ailibrechat.ai/changelog/v0.8.7

Frequently asked

questions

It can be triggered through the application if an attacker has EDIT permission on an affected agent action and the action is later invoked.

The described attack requires collaborator-level EDIT permission on the action; it does not require the owner's credentials in advance.

Enforce authorization for sensitive action changes, and ensure retained credentials can only be sent to explicitly trusted destinations.

Separate metadata-editing privileges from secret management, validate destination changes against policy, and audit credential use and action updates.

Find out what's already
exploitable in your codebase.