{"id":"GHSA-p36r-qxgx-jq2v","revision":"78b156e84d034392a0cd4b18a7ad9924","records":[{"revision":"78b156e84d034392a0cd4b18a7ad9924","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-p36r-qxgx-jq2v","aliases":["CVE-2024-37895"],"title":"Lobe Chat API Key Leak","description":"### 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.","state":0,"publishedAt":"2024-06-17T22:28:41+00:00","modifiedAt":"2026-09-10T03:50:15.6819275+00:00","affected":[{"ecosystem":"npm","name":"@lobehub/chat","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.162.25"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/lobehub/lobe-chat/security/advisories/GHSA-p36r-qxgx-jq2v","https://nvd.nist.gov/vuln/detail/CVE-2024-37895","https://github.com/lobehub/lobe-chat"],"sourceUrl":"https://github.com/advisories/GHSA-p36r-qxgx-jq2v","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-p36r-qxgx-jq2v","identifiers":["GHSA-p36r-qxgx-jq2v","CVE-2024-37895"]},"retained":false,"historicalAffected":[]}],"coverage":[]}