{"id":"CVE-2026-54040","published":"2026-06-25T15:45:23Z","modified":"2026-06-25T18:13:32Z","title":"LibreChat: 2FA Backup Code Regeneration Without OTP Verification Allows 2FA Bypass","vendor":"danny-avila","product":"LibreChat","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00258,"percentile":0.17793,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":3.56},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"danny-avila","affectedVersions":[{"vendor":"danny-avila","product":"LibreChat","versions":["< 0.8.4-rc1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T18:12:54.587144Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39456","exploited":false,"provenance":"source"}}