CVE-2024-37895:
Lobe Chat API Key Leak
5.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.11306%
CWE
Published
6/17/2024
Updated
6/17/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
@lobehub/chat | npm | < 0.162.25 | 0.162.25 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability combines two critical failures: 1) Unrestricted base URL modification allows SSRF (CWE-918), and 2) Sensitive API keys are included in requests to attacker-controlled endpoints (CWE-200). The first function
likely handles user input for base URL without validation()
, while the second function
would be responsible for attaching sensitive headers to outbound requests. These would work in tandem to enable the described attack flow where authenticated users can exfiltrate credentials via modified endpoints.