CVE Explorer
CVE-2026-31942
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"LibreChat","vendor":"danny-avila","versions":[{"status":"affected","version":"< 0.8.3-rc1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:02e9db1157dfce713685a31f7e34d9c0e8fa6175f259378b432bb8f0a91719fe · sha256:c3ca980570704bb6… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:02e9db1157dfce713685a31f7e34d9c0e8fa6175f259378b432bb8f0a91719fe · sha256:c3ca980570704bb6… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-862","description":"CWE-862: Missing Authorization","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:02e9db1157dfce713685a31f7e34d9c0e8fa6175f259378b432bb8f0a91719fe · sha256:c3ca980570704bb6… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"name":"https://github.com/danny-avila/LibreChat/security/advisories/GHSA-5jcj-rh68-cgj7","tags":["x_refsource_CONFIRM"],"url":"https://github.com/danny-avila/LibreChat/security/advisories/GHSA-5jcj-rh68-cgj7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:02e9db1157dfce713685a31f7e34d9c0e8fa6175f259378b432bb8f0a91719fe · sha256:c3ca980570704bb6… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.