HOMEVULNERABILITIESCVE-2026-54040
HIGH

CVE-2026-54040

CWE-306Published: June 25, 2026· Updated: Jun 29, 2026

7.1
CVSS v3.1
EPSS:0.15%probability of exploitation in 30 daysPercentile:4.9th

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.

NVD Source

Technical Analysis

CVE-2026-54040 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.

Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.

A successful exploit results in full integrity compromise (data manipulation), with a CVSS base score of 7.1.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorNetwork
Attack ComplexityLow
Privileges Req.Low
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityLow
IntegrityHigh
AvailabilityNone
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

Affected Vendors & Products

librechat1 product
librechat
Source: NVD CPE · 1 total CPE entries

Exploit & PoC Resources

NO KNOWN EXPLOITNo public exploit confirmed at this time
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (2)

Quick Facts

CVE IDCVE-2026-54040
CVSS Score7.1 / 10
SeverityHIGH
WeaknessCWE-306
CISA KEVNo
EPSS (30d)0.15%
Affected1 vendor
PublishedJun 25, 2026

Related CVEs (CWE-306)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2026-54040 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.