{"cve":"CVE-2025-59417","nvd":{"published":"2025-09-18T15:15:38.557","modified":"2026-06-17T09:46:07.870","status":"Analyzed","description":"Lobe Chat is an open-source artificial intelligence chat framework. Prior to version 1.129.4, there is a a cross-site scripting (XSS) vulnerability when handling chat message in lobe-chat that can be escalated to remote code execution on the user’s machine. In lobe-chat, when the response from the server is like <lobeArtifact identifier=\"ai-new-interpretation\" ...> , it will be rendered with the lobeArtifact node, instead of the plain text. However, when the type of the lobeArtifact is image/svg+xml , it will be rendered as the SVGRender component, which internally uses dangerouslySetInnerHTML to set the content of the svg, resulting in XSS attack. Any party capable of injecting content into chat messages, such as hosting a malicious page for prompt injection, operating a compromised MCP server, or leveraging tool integrations, can exploit this vulnerability. This vulnerability is fixed in 1.129.4.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","score":6.8},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/lobehub/lobe-chat/commit/9f044edd07ce102fe9f4b2fb47c62191c36da05c","https://github.com/lobehub/lobe-chat/security/advisories/GHSA-m79r-r765-5f9j","https://github.com/lobehub/lobe-chat/security/advisories/GHSA-m79r-r765-5f9j"],"products":["lobehub:lobe_chat"],"source":"nvd","synced_at":"2026-10-19T22:10:08.713834912+00:00"},"epss":{"cve":"CVE-2025-59417","score":0.00432,"percentile":0.37549,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m79r-r765-5f9j","url":"https://osv.dev/vulnerability/GHSA-m79r-r765-5f9j","summary":"Lobe Chat Desktop vulnerable to Remote Code Execution via XSS in Chat Messages","modified":"2026-09-10T03:50:28.527046113Z","packages":[{"ecosystem":"npm","name":"@lobehub/chat","purl":"pkg:npm/%40lobehub/chat","ranges":["<1.129.4"],"fixed":["1.129.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}