CVE-2026-31942: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers
CVE-2026-31942 is a high-severity flaw (CVSS 7.1) affecting librechat. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.,
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.2% (top 89%) |
| CISA exploited list | No |
| Weakness | CWE-862 |
| Published | 2026-06-02 |
| Last modified | 2026-07-22 |
Last updated 2026-07-22 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-31942?
librechat: upgrade to 0.8.3. Exact commands for each OS are on this page.
Is CVE-2026-31942 being exploited?
CVE-2026-31942 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-31942 affect?
CVE-2026-31942 affects librechat. Severity is high (CVSS 7.1). 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 t
How urgent is CVE-2026-31942?
Priority 27/100. High severity
Software pages
OpenAI ChatGPT vulnerabilities
Related CVEs
- CVE-2026-31943 HIGH 8.5 UPGRADE LibreChat is a ChatGPT clone with additional features
- CVE-2026-31945 HIGH 7.7 DOWNGRADE LibreChat is a ChatGPT clone with additional features
- CVE-2026-31951 MEDIUM 6.8 UPGRADE LibreChat is a ChatGPT clone with additional features
- CVE-2026-31950 MEDIUM 5.3 DOWNGRADE LibreChat is a ChatGPT clone with additional features
- CVE-2026-54033 HIGH 7.7 UPGRADE LibreChat is an enhanced ChatGPT clone that supports multiple AI providers