Security incident · CVE-2026-31942
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers.
Published Jun 2, 2026 · catalog updated Jul 22, 2026 · LibreChat is an enhanced
Check if you run it
No confirmed exploitation is on record for CVE-2026-31942. EPSS is 0.34%. Act only if a listed version of LibreChat is an enhanced is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (LibreChat is an enhanced).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- High7.1
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.34%
- Remediation
- Version ranges on file
- Affected products
- cpe librechat/librechat · stated librechat
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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe librechat/librechatversion unspecified
- stated librechat<= 0.7.6
How to fix CVE-2026-31942
Recommended remediation
Affected version ranges suggest a fixed boundary. Verify against the vendor advisory for your release.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-31942. EPSS is 0.34%. Act only if a listed version of LibreChat is an enhanced is installed.
Which versions are affected?
Compare what you have installed with <= 0.7.6. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-862: Missing Authorization. EPSS 0.34%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Jun 2, 2026 · NIST NVD
Detected
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 b
Jul 22, 2026 · NIST NVD
Updated
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 b
Sources
- CVE.orgVulnerability recordCVE-2026-31942
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-31942
30-day exploitation probability 0.3%
first.org - NIST NVDVulnerability recordCVE-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 o
nvd.nist.gov
References
Freshness
Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.