Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-31942— LibreChat has IDOR in API Keys Management that allows any authenticated user to overwrite other users' API keys

Quick assessment

Affected
danny-avila LibreChat
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LibreChat是LibreChat开源的一个免费、高度可定制的统一 AI 对话平台,能够在一个界面中聚合并运行来自任意厂商的大模型。 LibreChat 0.7.6及之前版本存在安全漏洞,该漏洞源于API密钥管理端点存在不安全的直接对象引用,任何经过身份验证的用户可通过注入userId参数覆盖其他用户的API密钥配置,可能导致攻击者控制受害者对话路由或拒绝服务。

CVSS 7.1 · High EPSS 0.34% · P26

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
danny-avila LibreChat < 0.8.3-rc1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-31942

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
LibreChat has IDOR in API Keys Management that allows any authenticated user to overwrite other users' API keys
Source: CVE Program / CVE List V5
Vulnerability 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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制缺失
Source: CVE Program / CVE List V5
Vulnerability Title
LibreChat 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LibreChat是LibreChat开源的一个免费、高度可定制的统一 AI 对话平台,能够在一个界面中聚合并运行来自任意厂商的大模型。 LibreChat 0.7.6及之前版本存在安全漏洞,该漏洞源于API密钥管理端点存在不安全的直接对象引用,任何经过身份验证的用户可通过注入userId参数覆盖其他用户的API密钥配置,可能导致攻击者控制受害者对话路由或拒绝服务。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
danny-avila LibreChat < 0.8.3-rc1 -

II. Public POCs for CVE-2026-31942

# POC Description Source Link Shenlong Link
AI-Generated POC Verified env Premium
Reproduced successfully in a real sandbox · Below is the actual recording of building the environment and exploiting the vulnerability.
Reproduction recording is a Pro+ exclusive
Watch the full sandbox build + live exploit recording for this CVE. Limited-time ¥499/mo.
Upgrade to Pro+
Qwen3.6-35B-A3B · 7980 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-31942

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-31942 (1)

Same Patch Batch · danny-avila · 2026-06-02 · 4 CVEs total

CVE-2026-32625 9.6 CRITICAL LibreChat Exfiltrates Server Secrets via MCP Server URL Injection
CVE-2026-44653 6.5 MEDIUM LibreChat Shared MCP Server View Leaks Decrypted Admin Secrets
CVE-2026-44654 LibreChat: Shared-agent editor can globally delete owner's file records — breaks owner's o

IV. Related Vulnerabilities

V. Comments for CVE-2026-31942

No comments yet


Leave a comment