{"id":"CVE-2026-31942","aliases":["CVE-2026-31942"],"related":[],"kind":"vulnerability","state":"published","title":"LibreChat has IDOR in API Keys Management that allows any authenticated user to overwrite other users' API keys","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"es","text":"LibreChat es un clon mejorado de ChatGPT que soporta múltiples proveedores de IA. En versiones hasta la 0.7.6 inclusive, existe una vulnerabilidad de Referencia Directa Insegura a Objeto (IDOR) en el endpoint de gestión de claves API (PUT /api/keys). Debido al uso del operador de propagación de objetos de JavaScript después de establecer el ID del usuario autenticado, cualquier usuario autenticado puede inyectar un parámetro userId en el cuerpo de la solicitud para sobrescribir las claves API de cualquier otro usuario (p. ej., OpenAI, Anthropic, Azure). Esto permite a un atacante reemplazar la configuración de claves API de una víctima, potencialmente enrutando las conversaciones de la víctima a través de claves controladas por el atacante o denegando el servicio al proporcionar claves no válidas. Esto está parcheado en la versión 0.8.3-rc1.","source":"nvd"}],"published":"2026-06-02T22:22:13.527Z","modified":"2026-07-22T19:10:00.120Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","score":7.1,"rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":"< 0.8.3-rc1","status":"affected"}],"vendor":"danny-avila","product":"LibreChat","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.8.3"}],"vendor":"librechat","product":"librechat","cpe":"cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/danny-avila/LibreChat/security/advisories/GHSA-5jcj-rh68-cgj7","tags":["mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-03T13:12:30.360Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31942","url":"https://www.cve.org/CVERecord?id=CVE-2026-31942","licence":"CVE Terms of Use","modified":"2026-06-03T13:12:43.716Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31942","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31942","licence":"Public domain","modified":"2026-07-22T19:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:23.616Z","epss":{"score":0.00206,"percentile":0.11204,"date":"2026-12-01T12:00:22.000Z"}}