All vulnerabilities

Servers and applications

CVE-2026-54030

Missing Resource Parameter Validation in MCP OAuth Flow

Severity
Critical 9.3
Published
2 Jun 2026
Last changed
25 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.8.5
Exploit chance
0.2% in the next 30 daysHigher than 6% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Origin validation error (CWE-346)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Also known as
GHSA-gvpj-vm2f-2m23
Sources
NVD, Project advisories (GitHub)

Description

LibreChat's MCP OAuth implementation does not validate that the resource parameter from OAuth Protected Resource metadata (RFC 9728) matches the configured MCP server URL, allowing a malicious MCP server to steal access tokens intended for a legitimate server.

RFC 9728 specifies two MUST requirements for resource parameter validation:

  • Section 7.3: the client MUST ensure that the resource identifier URL it is using as the prefix for the metadata request exactly matches the resource value in the returned metadata document.
  • Section 3.3: if the resource value returned is not identical to the URL the client used, the data MUST NOT be used.

In packages/api/src/mcp/oauth/handler.ts (lines 542–548), the resource parameter from metadata is added to the authorization URL without validating that it matches the configured MCP server URL:

From LibreChat-AI/LibreChat's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LibreChatServers and applications · cpe:a:librechat:librechat
  • Every version up to 0.8.4
  • Version 0.8.5-rc1
LibreChatServers and applications · github:librechat-ai/librechat
  • Every version before 0.8.5

About LibreChat

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

From its GitHub repository.
Docker Hub pulls
669,094Docker Hub, 15 Nov 2026
GitHub stars
47,138GitHub, 15 Nov 2026
Forks
9,706GitHub, 15 Nov 2026
License
MITGitHub
First published on GitHub
12 Feb 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-54030
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54030
  • GitHub Advisory Database https://github.com/advisories/GHSA-gvpj-vm2f-2m23
  • github.com https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-gvpj-vm2f-2m23