CVE-2026-31942
published high CVSS 3.1 · 7.1LibreChat has IDOR in API Keys Management that allows any authenticated user to overwrite other users' API keys
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| danny-avila | — | LibreChat< 0.8.3-rc1 | Affected | Not stated | GitHub_M |
Description
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. In versions up to and including 0.7.6, an Insecure Direct Object Reference (IDOR) vulnerability exists in the API keys management endpoint (PUT /api/keys). Due to the use of the JavaScript object spread operator after setting the authenticated user's ID, any authenticated user can inject a userId parameter in the request body to overwrite any other user's API keys (e.g., OpenAI, Anthropic, Azure). This allows an attacker to replace a victim's API key configuration, potentially routing the victim's conversations through attacker-controlled keys or denying service by providing invalid keys. This is patched in version 0.8.3-rc1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| danny-avila | LibreChat | < 0.8.3-rc1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-862 CWE-862: Missing Authorization
References
1Provider assertions
2GitHub_M · cna
LibreChat has IDOR in API Keys Management that allows any authenticated user to overwrite other users' API keys
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2e24cb5e7306c79d916a73017508bb495cf8db4f82c27ec62fad9fba7bb49b47
- Ingested
- 23 Sep 2026, 09:09:43 UTC
- Source record
- Official CVE record