CVE-2026-54039

Source
https://cve.org/CVERecord?id=CVE-2026-54039
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54039.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54039
Aliases
  • GHSA-wjpf-x42h-cv4m
Published
2026-11-20T20:03:01Z
Modified
2026-11-21T21:00:41Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
LibreChat: Pre-registration account takeover via attacker-controlled `provider` field and social-login email fallback
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-287",
        "CWE-915"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54039.json"
}
References

Affected packages

Git / github.com/librechat-ai/librechat

Affected ranges

Type
GIT
Repo
https://github.com/librechat-ai/librechat
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0.7.0"
                },
                {
                    "fixed": "0.8.6"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "b01d34abe29152e6e7f763089c0d9a6e647d0dba"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v0.8.6",
            "range": [
                {
                    "fixed": "566e20b613389600a7975fd8f7c1bffbe54f06c8"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

chart-1.*
chart-1.9.0
chart-1.9.1
chart-1.9.2
chart-1.9.3
chart-1.9.4
chart-1.9.5
chart-1.9.6
chart-1.9.7
chart-1.9.8
chart-1.9.9
chart-2.*
chart-2.0.0
chart-2.0.1
chart-2.0.2
chart-2.0.3
chart-2.0.4
librechat-1.*
librechat-1.8.9
v0.*
v0.7.0
v0.7.1
v0.7.2
v0.7.3
v0.7.3-rc
v0.7.3-rc2
v0.7.4
v0.7.4-rc1
v0.7.5
v0.7.5-rc1
v0.7.5-rc2
v0.7.6
v0.7.6-rc1
v0.7.7
v0.7.7-rc1
v0.7.8
v0.7.8-rc1
v0.7.9
v0.7.9-rc1
v0.8.0
v0.8.0-rc1
v0.8.0-rc2
v0.8.0-rc3
v0.8.0-rc4
v0.8.1
v0.8.1-rc1
v0.8.1-rc2
v0.8.2
v0.8.2-rc1
v0.8.2-rc2
v0.8.2-rc3
v0.8.3
v0.8.3-rc1
v0.8.3-rc2
v0.8.4
v0.8.4-rc1
v0.8.5
v0.8.5-rc1
v0.8.6-rc1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54039.json"