CVE-2025-41258

LibreChat RAG API Authentication Bypass

Published Mar 18, 2026 CVSS 3.1 · 8 High EPSS < 1% KEV · Not listed
Description
LibreChat version 0.8.1-rc2 uses the same JWT secret for the user session mechanism and RAG API which compromises the service-level authentication of the RAG API.

Analysis

AI-generated

Technical impact

LibreChat version 0.8.1‑rc2 reuses the same JWT secret for its user sessions and for the Retrieval‑Augmented Generation (RAG) API. This design flaw permits an attacker who can obtain or guess a valid session token to craft requests that appear authenticated to the RAG API, effectively bypassing service‑level protection. The consequence is unauthorized access to the RAG endpoint, potentially exposing or manipulating sensitive data. The weakness corresponds to improper authorization (CWE‑284).

Affected Systems

The affected product is LibreChat developed by Danny Avila. The vulnerability exists in the 0.8.1‑rc2 release. Any deployment that relies on this exact version without a distinct JWT secret configuration is exposed.

Risk and Exploitability

The CVSS base score of 8 indicates high severity. The EPSS score of less than 1% suggests a low probability of active exploitation at present, and the issue is not listed in CISA’s KEV catalog. The likely attack vector is remote access to the RAG API over the network, provided the attacker can obtain or guess a session token. Although the description does not explicitly state the path, this inference is based on the shared JWT usage and typical RAG API exposure. If an attacker succeeds, they could impersonate legitimate users and retrieve or modify data through the RAG endpoint.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LibreChat to a version that separates the JWT secrets for session handling and the RAG API, such as the latest release.
  • If an upgrade is not immediately possible, configure the application to use distinct JWT secrets for user sessions and for the RAG API.
  • Verify that RAG API requests require a valid, non‑shared token and enforce proper authorization checks.
  • Monitor API traffic for anomalous authentication attempts and review logs for suspicious activity.

Generated by OpenCVE AI on March 24, 2026 at 19:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Librechat
Librechat librechat
CPEs cpe:2.3:a:librechat:librechat:0.8.1:rc2:*:*:*:*:*:*
Vendors & Products Librechat
Librechat librechat
Type Values Removed Values Added
First Time appeared Danny-avila
Danny-avila libre Chat
Vendors & Products Danny-avila
Danny-avila libre Chat
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description LibreChat version 0.8.1-rc2 uses the same JWT secret for the user session mechanism and RAG API which compromises the service-level authentication of the RAG API.
Title LibreChat RAG API Authentication Bypass
Weaknesses CWE-284
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
sba-research
Published
Updated
Mar 18, 2026, 2:19 PM
Reserved
Apr 16, 2025, 9:37 AM
Status
Analyzed
Published
Mar 18, 2026, 12:16 PM
Modified
Jun 17, 2026, 9:22 AM