{
  "id": "CVE-2026-54040",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-54040",
  "published_at": "2026-06-25T15:45:23.953Z",
  "title": "LibreChat: 2FA Backup Code Regeneration Without OTP Verification Allows 2FA Bypass",
  "vendor": "danny-avila",
  "product": "LibreChat",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-306",
  "cpes": [
    "cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.9,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "danny-avila",
        "product": "LibreChat",
        "ranges": [
          "\u003c 0.8.4-rc1"
        ],
        "fixed_in": [
          "0.8.4-rc1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade LibreChat to 0.8.4-rc1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gv"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
