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

Status: published. Published: 2026-11-20. Updated: 2026-11-24.

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.

## Remediation

- fix: LibreChat (other): GitHub reports patched versions 0.8.6. Check the advisory for the affected release branch. (source: GitHub GHSA-wjpf-x42h-cv4m) — https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m

## Affected products and versions

- LibreChat-AI / LibreChat: >= 0.7.0, < 0.8.6 (affected). Source: CNA: GitHub_M
-  / LibreChat (LibreChat): >= 0.7.0, < 0.8.6, < 0.8.6 (affected, GitHub advisory range). Source: GitHub GHSA-wjpf-x42h-cv4m

## Severity and prioritization

- CVSS 3.1: 8.1 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N; source: CNA: GitHub_M

- CVSS 3.1: 8.1 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.67% as of 2026-11-23; percentile 52.96%

- SSVC: exploitation poc; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-287, CWE-915

## Exploit evidence

- exploit: https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m (ADP: CISA-ADP)

## References

- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/LibreChat-AI/LibreChat/pull/13307 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/LibreChat-AI/LibreChat/commit/b01d34abe29152e6e7f763089c0d9a6e647d0dba (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.6 (CNA: GitHub_M; x_refsource_MISC)

- https://www.librechat.ai/changelog/v0.8.6 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m (ADP: CISA-ADP; exploit)

- https://github.com/LibreChat-AI/LibreChat/commit/b01d34abe29152e6e7f763089c0d9a6e647d0dba (security-advisories@github.com)

- https://github.com/LibreChat-AI/LibreChat/pull/13307 (security-advisories@github.com)

- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.6 (security-advisories@github.com)

- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m (security-advisories@github.com)

- https://www.librechat.ai/changelog/v0.8.6 (security-advisories@github.com)

- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m (134c704f-9b21-4f2e-91b3-4a467353bcc0)

- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m (GitHub Security Advisories; advisory)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-54039; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-54039; retrieved 2026-11-24; source updated 2026-11-24

- GitHub Security Advisories: https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-wjpf-x42h-cv4m; retrieved 2026-11-23; source updated 2026-11-17

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-54039; retrieved 2026-11-23; source updated Not reported

Revision: 48f4d3c6fb4b8a523b625de6e823eea9ede3a4fe425f86468e5ab2178b504b24

Canonical: https://y2.dev/cve/CVE-2026-54039

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.