CVE-2026-54031
What it is
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.8, packages/api/src/mcp/oauth/handler.ts createOAuthFetch validates only the initial destination for MCP OAuth discovery, registration, token, refresh, and revocation requests, then uses redirect-following fetch behavior without validating each redirect target. An attacker who can initiate MCP OAuth against a controlled endpoint can redirect server requests to internal or private addresses, reaching services that the initial SSRF checks should block. The separate MCP transport path already validates redirects and is not affected. This issue is fixed in version 0.8.8.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of data exposure.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- ReservedThe CVE id was reserved by its CNA
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: not scored yet.
- Severity: 6.3 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Weakness
- CWE-918 · Server-side request forgery
- Record status
- Received
Affected
- LibreChat-AI LibreChat < 0.8.8
Attack profile CVSS 3.1 · 6.3
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2026-54031.md and follow it. Check whether this project is affected by CVE-2026-54031. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-f7xq-83jc-cgrj
References
- https://github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67
- https://github.com/LibreChat-AI/LibreChat/pull/16514
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-f7xq-83jc-cgrj
- https://www.librechat.ai/changelog/v0.8.8