8.1high
LibreChat: Pre-registration account takeover via attacker-controlled `provider` field and social-login email fallback
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.50% (higher than 36% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| LibreChat-AI LibreChat | >= 0.7.0, < 0.8.6 | CVE List |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54039 changed 2026-11-23 | CVE Terms of Use |
| NVD | CVE-2026-54039 changed 2026-11-24 | Public domain |