BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-31942 in Librechat

High 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 the use of the JavaScript object spread operator after setting the authenticat...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.1
EPSS0.3%
EPSS percentile20th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact.

Affected products and versions

VendorProductAffected versions
Librechat Librechat < 0.8.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-31942
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Published2026-06-02
Last modified2026-07-22
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-862: Missing Authorization

Software does not check whether an authenticated actor has permission for the requested operation.

Related attack patterns (CAPEC)

CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-862

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A high severity vulnerability (CVE-2026-31942) affects the target system. 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 ...

Questions

What is CVE-2026-31942?

A high severity vulnerability (CVE-2026-31942) affects the target system. 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 ...

What is the CVSS score for CVE-2026-31942?

CVE-2026-31942 has CVSS 7.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L. EPSS: 0.3%.

Is CVE-2026-31942 actively exploited?

No confirmed active exploitation of CVE-2026-31942 as of 2026-09-25.

How do I remediate CVE-2026-31942?

Apply vendor patches for CVE-2026-31942. Monitor Librechat advisories.

What systems are affected by CVE-2026-31942?

CVE-2026-31942 affects Librechat Librechat.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Librechat","product":"Librechat","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-22.