Skip to content
DayZeroHub
High Not yet writtenCVSS 8.1CVE-2026-54039

CVE-2026-54039: LibreChat: Pre-registration account takeover via attacker-controlled `provider` field and social-login email fallback

LibreChat-AI LibreChat

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-54039: high-severity vulnerability (CVSS 8.1) in LibreChat-AI LibreChat.

What happened

Original description from the source: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. From 0.7.0 until 0.8.6, when local registration is enabled and at least one social provider is configured, POST /api/auth/register passes an unparsed request object into api/server/services/AuthService.js, allowing an unauthenticated attacker to persist a forged provider value for a known victim email. The api/strategies/socialLogin.js email-fallback path then accepts the planted record when the victim signs in because it compares the stored provider name without requiring the provider subject identifier. The victim OAuth session and the attacker local-password session become bound to the same user record, giving the attacker persistent read and write access to data created by the victim. The first-user administrator role is an additional conditional impact only on a fresh deployment. This issue is fixed in version 0.8.6.

Why it matters

High severity, CVSS 8.1.

Affected products and versions

LibreChat-AI LibreChat >= 0.7.0, < 0.8.6

ProductVersionsFixed in
LibreChat-AI LibreChat>= 0.7.0, < 0.8.6—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-287, CWE-915

Relevant change history

  1. Published

    Preliminary advisory published.