CVE-2026-54031
LibreChat is an enhanced ChatGPT clone that supports multiple AI …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67
- github.com/LibreChat-AI/LibreChat/pull/16514
- github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8
- github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-f7xq-83jc-cgrj
- www.librechat.ai/changelog/v0.8.8
- nvd.nist.gov/vuln/detail/CVE-2026-54031
- cve.org/CVERecord?id=CVE-2026-54031
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.