Lobe Chat Desktop Vulnerable to Remote Code Execution via XSS in Chat Messages
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| lobehub | lobe-chat | before 1.129.4 | 1.129.4 | Patch available | CNA |
| — | @lobehub/chat (npm) | before 1.129.4 | 1.129.4 | Patch available | GHSA-m79r-r765-5f9j |
- lobe-chat Vendorlobehub Affected before 1.129.4 Fixed in 1.129.4 Patch available CNA
- @lobehub/chat (npm) Vendor— Affected before 1.129.4 Fixed in 1.129.4 Patch available GHSA-m79r-r765-5f9j
Remediation
- Fix · CNA lobe-chat (lobehub) Fixed in 1.129.4
- Fix · GHSA-m79r-r765-5f9j @lobehub/chat (npm) Fixed in 1.129.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59417
- 2026-10-03 Alias added: GHSA-m79r-r765-5f9j
References
Other 6
- https://github.com/lobehub/lobe-chat
- https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/apps/desktop/src/main/controllers/SystemCtr.ts#L65-L68
- https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Conversation/components/MarkdownElements/LobeArtifact/index.ts#L7-L11
- https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Conversation/components/MarkdownElements/LobeArtifact/rehypePlugin.ts#L50-L68
- https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx#L67-L79
- https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Portal/Artifacts/Body/Renderer/index.tsx#L10-L32
More lobehub Lobe Chat vulnerabilities
- TI-2024-31448 Lobe Chat has insufficient fix for GHSA-mxhq-xw3g-rphc (CVE-2024-32964) CVSS 3.1CRITICAL 9.0
- TI-2024-21831 lobe-chat `/api/proxy` endpoint Server-Side Request Forgery vulnerability CVSS 3.1CRITICAL 9.0
- TI-2024-21832 ssrf vulnerability in lobe-chat CVSS 3.1HIGH 8.6
- TI-2025-36978 lobe-chat has an Open Redirect CVSS 3.1MEDIUM 4.3
- TI-2024-16187 Lobe Chat unauthorized access to plugins CVSS 3.1MEDIUM 5.3
- TI-2024-25211 API Key Leak in lobe-chat CVSS 3.1MEDIUM 5.7
Sources
- CVE-2025-59417 · CVE Program
- CVE-2025-59417 · NVD
- FIRST EPSS
- GHSA-m79r-r765-5f9j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences