SB2026111813 - Multiple vulnerabilities in LibreChat



SB2026111813 - Multiple vulnerabilities in LibreChat

Published: November 18, 2026 Updated: November 19, 2026

Security Bulletin ID SB2026111813
CSH Severity
High
Patch available
YES
Number of vulnerabilities 15
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

High 7% Medium 13% Low 80%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 15 vulnerabilities.


1) Uncaught Exception (CVE-ID: N/A)

CWE-ID: CWE-248 - Uncaught Exception

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by repeatedly terminating the LibreChat server process.

The vulnerability exists due to an uncaught exception in LibreChat's LDAP login handling when LDAP login is enabled and a non-string password reaches the LDAP bind operation. A remote attacker can send POST /api/auth/login requests containing an email matching an existing directory entry and a password value of 1 or true to trigger an assertion failure and terminate the process under default exception handling.


2) Missing Authorization (CVE-ID: N/A)

CWE-ID: CWE-862 - Missing Authorization

CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to access unauthorized MCP servers and invoke their tools using stored owner credentials.

The vulnerability exists due to missing authorization in LibreChat's Agent Actions endpoint when action tool keys are misclassified as MCP tools and used to derive server grants. A remote user can submit metadata.domain="x_mcp_PaymentsApi" without raw_spec to POST /api/agents/actions/:agent_id for their own agent to insert the target server name into its grants and obtain unauthorized server access.


3) Server-Side Request Forgery (SSRF) (CVE-ID: N/A)

CWE-ID: CWE-918 - Server-Side Request Forgery (SSRF)

CVSSv4: 6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N]


The vulnerability allows a remote user to access internal services and potentially disclose sensitive information through server-side request forgery.

The vulnerability exists due to incomplete classification of IPv4-translated IPv6 addresses in LibreChat's isPrivateIP() guard when validating request destinations. A remote user can create an agent action or MCP server targeting an address such as http://[::ffff:0:a00:1]/ to bypass the guard and potentially access internal IPv4 services when the deployment routes the translated prefix through an appropriate translator.


4) Incorrect authorization (CVE-ID: N/A)

CWE-ID: CWE-863 - Incorrect Authorization

CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to enumerate accounts by e-mail, disclose account holders' full names, and create accounts for arbitrary e-mail addresses.

The vulnerability exists due to improper authorization in LibreChat's shared-link permissions API when processing caller-supplied directory principals without verifying an authenticated directory context, including when Entra ID is not configured. A remote user can submit permission updates containing source: "entra" and chosen identity attributes for their own shared link to retrieve existing users' names or create accounts with attacker-chosen names.


5) Authorization bypass through user-controlled key (CVE-ID: N/A)

CWE-ID: CWE-639 - Authorization Bypass Through User-Controlled Key

CVSSv4: 7.2 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to stop another user's generation, read their prompt and partial output including reasoning, and save the partial reply under their own account.

The vulnerability exists due to missing ownership checks in LibreChat's abortMessage() handler when processing conversation identifiers supplied to the assistants abort routes. A remote user can submit a victim's conversation identifier in abortKey with endpoint set to "agents" to /api/assistants/v1/chat/abort or /api/assistants/v2/chat/abort while generation is running to terminate it and retrieve its private content.


6) Allocation of Resources Without Limits or Throttling (CVE-ID: N/A)

CWE-ID: CWE-770 - Allocation of Resources Without Limits or Throttling

CVSSv4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to cause a denial of service by blocking the LibreChat server's event loop, making requests from all users unresponsive.

The vulnerability exists due to unbounded resource consumption in excelSheetToText when synchronously converting worksheets to CSV before enforcing extracted-text limits. A remote user can upload a crafted spreadsheet to an agent through POST /api/files with tool_resource=context to trigger excessive CSV expansion and prolonged server stalls, repeating uploads to sustain the disruption.


7) Insufficient Entropy (CVE-ID: N/A)

CWE-ID: CWE-331 - Insufficient Entropy

CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a local user to recover backup codes from exposed database records and potentially bypass two-factor authentication.

The vulnerability exists due to insufficient entropy in LibreChat's api/server/services/twoFactorService.js when generating 80-bit TOTP secrets and 32-bit backup codes, with backup codes stored as unsalted SHA-256 hashes. A local user can enumerate the backup-code space offline after obtaining stored hashes to recover unused second-factor credentials and, with a valid account password, bypass two-factor authentication.


8) Cross-site request forgery (CVE-ID: N/A)

CWE-ID: CWE-352 - Cross-Site Request Forgery (CSRF)

CVSSv4: 4.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to potentially associate a victim's provider credentials with their own LibreChat account.

The vulnerability exists due to insufficient cross-site request forgery validation in LibreChat's MCP OAuth callback when accepting fresh pending flows without browser-binding cookies. A remote user can initiate an OAuth flow and trick a victim into opening its authorization URL and approving provider consent to potentially access victim-authorized resources through the linked MCP integration, subject to granted scopes.


9) Race condition (CVE-ID: N/A)

CWE-ID: CWE-362 - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

CVSSv4: 6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to inflate their token credit balance through repeated credits within a single refill window.

The vulnerability exists due to a race condition in LibreChat's automatic refill processing when auto-refill is enabled and the refill interval has elapsed, because the balance compare-and-swap checks tokenCredits but not lastRefill. A remote user can submit concurrent chat requests that pass the same stale eligibility check and repeatedly add refillAmount through balance-update retries to obtain excess credits.


10) Reliance on Untrusted Inputs in a Security Decision (CVE-ID: N/A)

CWE-ID: CWE-807 - Reliance on Untrusted Inputs in a Security Decision

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to take over existing accounts and potentially gain administrator privileges.

The vulnerability exists due to reliance on untrusted directory-principal identity data in LibreChat's ensurePrincipalExists function when processing resource-sharing permission updates for accounts without an existing source identity binding. A remote user can submit a crafted permission update containing source: 'entra', a victim's email, and their own idOnTheSource, then authenticate through OpenID to access the victim's account, potentially retaining administrator privileges depending on role mapping.


11) Authorization bypass through user-controlled key (CVE-ID: N/A)

CWE-ID: CWE-639 - Authorization Bypass Through User-Controlled Key

CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to access other users' agent avatar images without authorization.

The vulnerability exists due to missing ownership checks in LibreChat's validateImageRequest middleware when secureImageLinks is enabled and image paths match the agent-avatar pattern. A remote user can request another user's avatar through /images/{24-hex}/agent-* to disclose the image despite secure image links being enabled.


12) Weak Password Recovery Mechanism for Forgotten Password (CVE-ID: N/A)

CWE-ID: CWE-640 - Weak password recovery mechanism

CVSSv4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to take over accounts, including administrator accounts, and access or modify their data.

The vulnerability exists due to disclosure of password-reset tokens in LibreChat's requestPasswordReset() function when password reset is enabled but email delivery is not configured. A remote attacker can enumerate valid email addresses through differing responses, request a reset link containing the victim's token and userId, and submit these values to /api/auth/resetPassword to set a new password and take over the account.


13) Improper Authentication (CVE-ID: N/A)

CWE-ID: CWE-287 - Improper Authentication

CVSSv4: 7.6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to take over another SAML account, access its data and permissions, and disrupt the victim's access.

The vulnerability exists due to improper authentication in LibreChat's SAML strategy when an email fallback matches an existing SAML account and overwrites its stored NameID without checking the identity binding. A remote user can authenticate with a legitimately signed assertion for their own directory principal whose asserted email matches the victim's to rebind and take over that account.


14) Reliance on Untrusted Inputs in a Security Decision (CVE-ID: N/A)

CWE-ID: CWE-807 - Reliance on Untrusted Inputs in a Security Decision

CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to create unverified local accounts bound to caller-chosen directory identities and pre-attach access permissions.

The vulnerability exists due to reliance on untrusted identity claims in LibreChat's ensurePrincipalExists function when processing agent-sharing requests with interface.agents.share enabled, creating records without verified issuer bindings. A remote user can submit "source":"entra" with arbitrary email and idOnTheSource values for an agent they can share to create accounts that subsequent legitimate OIDC logins may adopt.


15) Authorization bypass through user-controlled key (CVE-ID: N/A)

CWE-ID: CWE-639 - Authorization Bypass Through User-Controlled Key

CVSSv4: 2.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote user to replace another user's private assistant avatar, delete the previous avatar file, and take ownership of the local assistant record.

The vulnerability exists due to improper object-level authorization in the assistant avatar upload handler when it checks ownership of an assistant other than the one it updates. A remote user can submit an avatar upload targeting another user's assistant to modify it and remove it from the owner's private assistant list when private assistants are enabled.


Remediation

Install update from vendor's website.

References