PT-2026-28104 · Danny Avila+1 · Librechat

Danny Avila

+1

·

Published

2026-03-25

·

Updated

2026-06-03

·

CVE-2026-31942

CVSS v3.1

7.1

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Name of the Vulnerable Software and Affected Versions LibreChat versions prior to 0.8.3-rc1
Description An Insecure Direct Object Reference (IDOR) exists in the 'PUT /api/keys' endpoint. Due to the use of the JavaScript object spread operator after setting the authenticated user's ID, an authenticated user can inject a userId parameter in the request body to overwrite the API keys of another user. This allows an attacker to replace a victim's API key configuration for providers such as OpenAI, Anthropic, or Azure, which could route conversations through attacker-controlled keys or cause a denial of service by providing invalid keys.
Recommendations Update to version 0.8.3-rc1.

Fix

Missing Authorization

Weakness Enumeration

Related Identifiers

CVE-2026-31942

Affected Products

Librechat