BreachSpiderVerified, not vibes

CVE-2026-54040 in Librechat

High 7.1

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/auth/2fa/backup/regenerate endpoint regenerates all 2FA backup codes without requiring any TOTP token or existing backup code verification. An attacker with a stolen session token can silently replace a vict...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.1
EPSS0.3%
EPSS percentile11th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Librechat Librechat ≤ 0.8.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/auth/2fa/backup/regenerate endpoint regenerates all 2FA backup codes without requiring any TOTP token or existing backup code verification. An attacker with a stolen session token can silently replace a victim's backup codes and use them to bypass 2FA login or disable 2FA entirely. This vulnerability is fixed in 0.8.4-rc1.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-54040
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
Published2026-06-25
Last modified2026-10-25
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-306: Missing Authentication for Critical Function

Software does not perform any authentication for functionality that requires a verified identity.

Related attack patterns (CAPEC)

CAPEC-12 Choosing Message Identifier via CWE-306

CAPEC-36 Using Unpublished Interfaces or Functionality via CWE-306

CAPEC-62 Cross Site Request Forgery via CWE-306

CAPEC-166 Force the System to Reset Values via CWE-306

CAPEC-216 Communication Channel Manipulation via CWE-306

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A medium severity vulnerability (CVE-2026-54040) affects the target system. LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/auth/2fa/backup/regenerate endpoint regenerates all 2FA backup codes without requiring any TOTP token or existing backup code verification. ...

Questions

What is CVE-2026-54040?

A medium severity vulnerability (CVE-2026-54040) affects the target system. LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/auth/2fa/backup/regenerate endpoint regenerates all 2FA backup codes without requiring any TOTP token or existing backup code verification. ...

What is the CVSS score for CVE-2026-54040?

CVE-2026-54040 has CVSS 7.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N. EPSS: 0.3%.

Is CVE-2026-54040 actively exploited?

No confirmed active exploitation of CVE-2026-54040 as of 2026-11-03.

How do I remediate CVE-2026-54040?

Apply vendor patches for CVE-2026-54040. Monitor Librechat advisories.

What systems are affected by CVE-2026-54040?

CVE-2026-54040 affects Librechat Librechat.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Librechat","product":"Librechat","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-25.