Executive brief
LobeChat, an open-source AI chat framework, is vulnerable to a security flaw where authenticated users can force the server to make unauthorized requests to internal systems. This could allow an attacker to access sensitive internal data, such as cloud service credentials or private network information, potentially leading to a broader breach of the hosting environment. Users should update to the latest version to ensure these requests are properly filtered.
Technical details
A Server-Side Request Forgery (SSRF) vulnerability exists in LobeChat's 'importFromUrl' and 'fetchImageFromUrl' endpoints. These components utilized the global JavaScript 'fetch' function directly on user-supplied URLs instead of using the project's 'ssrf-safe-fetch' wrapper, which implements IP address filtering. An authenticated attacker can exploit this to perform full-read SSRF against internal resources, including cloud instance metadata services (e.g., 169.254.169.254) to extract IAM credentials or probe internal network ports. The vulnerability is resolved in version 2.2.10-canary.18 by routing these requests through the 'ssrfSafeFetch' guard.
Affected products
- LobeHub LobeChat before 2.2.10-canary.18
Timeline
- 2026-07-02: patched: Fix merged in PR 16601
- 2026-07-02: advisory: NVD and VulnCheck advisories published