{"id":"CVE-2024-37895","aliases":["CVE-2024-37895","GHSA-p36r-qxgx-jq2v"],"related":[],"kind":"vulnerability","state":"published","title":"API Key Leak in lobe-chat","summary":"Lobe Chat is an open-source LLMs/AI chat framework. In affected versions if an attacker can successfully authenticate through SSO/Access Code, they can obtain the real backend API Key by modifying the base URL to their own attack URL on the frontend and setting up a server-side request. This issue has been addressed in version 0.162.25. Users are advised to upgrade. There are no known workarounds for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Lobe Chat is an open-source LLMs/AI chat framework. In affected versions if an attacker can successfully authenticate through SSO/Access Code, they can obtain the real backend API Key by modifying the base URL to their own attack URL on the frontend and setting up a server-side request. This issue has been addressed in version 0.162.25. Users are advised to upgrade. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nIf an attacker can successfully authenticate through SSO/Access Code, they can obtain the real backend API Key by modifying the base URL to their own attack URL on the frontend and setting up a server-side request.\n\n### Details\n\nThe attack process is described above.\n\n![image](https://github.com/lobehub/lobe-chat/assets/36695271/df5e0c3c-af28-45c3-959f-182cc9d06680)\n\n### PoC\n\nFrontend:\n1. Pass basic authentication (SSO/Access Code).\n2. Set the Base URL to a private attack address.\n3. Configure the request method to be a server-side request.\n4. At the self-set attack address, retrieve the API Key information from the request headers.\n\nBackend:\n1. The LobeChat version allows setting the Base URL.\n2. There is no outbound traffic whitelist.\n\n### Impact\n\nAll community version LobeChat users using SSO/Access Code authentication, tested on version 0.162.13.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Lobe Chat es un framework de chat de IA/LLM de código abierto. En las versiones afectadas, si un atacante puede autenticarse exitosamente a través de SSO/Código de acceso, puede obtener la clave API de backend real modificando la URL base a su propia URL de ataque en la interfaz y configurando una solicitud del lado del servidor. Este problema se solucionó en la versión 0.162.25. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2024-06-17T19:28:31.021Z","modified":"2026-09-10T03:50:15.681Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-918"],"affected":[{"ranges":[{"version":"< 0.162.25","status":"affected"}],"vendor":"lobehub","product":"lobe-chat","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.162.25"}],"ecosystem":"npm","package":"@lobehub/chat","purl":"pkg:npm/%40lobehub/chat","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.162.25"}],"vendor":"lobehub","product":"lobe_chat","cpe":"cpe:2.3:a:lobehub:lobe_chat:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/lobehub/lobe-chat/security/advisories/GHSA-p36r-qxgx-jq2v","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37895","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lobehub/lobe-chat","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-18T14:05:08.874Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-37895","url":"https://www.cve.org/CVERecord?id=CVE-2024-37895","licence":"CVE Terms of Use","modified":"2024-08-02T03:57:39.976Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p36r-qxgx-jq2v","url":"https://github.com/advisories/GHSA-p36r-qxgx-jq2v","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:15.681Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-37895","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37895","licence":"Public domain","modified":"2026-06-17T07:39:00.333Z"}],"updatedAt":"2026-11-25T22:58:41.960Z","epss":{"score":0.00739,"percentile":0.50676,"date":"2026-11-30T12:00:22.000Z"}}