# CVE-2025-59417: Lobe Chat Desktop XSS to RCE in SVG artifact rendering

Source: https://junglewise.ai/threats/cve-2025-59417-lobe-chat-desktop-xss-to-rce-in-svg-artifact-rendering  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-09-18. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-59417 · Severity: medium · CVSS 4 · Published 2025-09-18

Lobe Chat Desktop is a popular AI chat application that allows users to interact with multiple AI models through a desktop interface. A cross-site scripting vulnerability in how the application renders SVG chat artifacts can be exploited by attackers to execute arbitrary code on a user's computer by injecting malicious chat messages. This could allow complete compromise of the user's system through prompt injection, compromised AI server integrations, or tool exploits.

Technologies: [@lobehub/chat (npm)](https://junglewise.ai/threats/technologies/lobehub-chat). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2025-59417 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-59417 being exploited in the wild.

**How severe is CVE-2025-59417?** Medium severity, with a CVSS score of 4, published 18 September 2025.

**Which products and versions are affected?** Lobe Chat Desktop up to 1.129.3; @lobehub/chat (npm) SEMVER:introduced=0,fixed=1.129.4.

**Is there a fix for CVE-2025-59417?** Yes. @lobehub/chat (npm): upgrade to 1.129.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-59417 attacked?** It is attacked with local access or over the network, in a web application.

**Am I affected by CVE-2025-59417?** Check whether you run Lobe Chat Desktop or @lobehub/chat (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @lobehub/chat (npm): upgrade to 1.129.4 or later

  ```sh
  npm install @lobehub/chat@1.129.4
  ```


## Technical details

Lobe Chat Desktop contains a cross-site scripting (XSS) vulnerability in its SVG artifact rendering component, which uses dangerouslySetInnerHTML to render user-supplied SVG content without proper sanitization. An attacker can inject a lobeArtifact element with type="image/svg+xml" containing malicious JavaScript (e.g., via onerror events in SVG img tags) into chat messages through prompt injection, compromised MCP servers, or tool integrations. Once XSS is achieved in the Electron renderer process, the attacker can invoke privileged IPC APIs (specifically openExternalLink) that lack input validation, allowing arbitrary command execution via file:// URIs or shell commands. The vulnerability affects versions up to 1.129.3 and is fixed in 1.129.4.

## Affected products

- Lobe Chat Desktop up to 1.129.3

## Identifiers

- CVE-2025-59417
- GHSA-m79r-r765-5f9j

## Timeline

- 2025-09-18: disclosed
- 2025-09-18: patched: fixed in version 1.129.4

## References

- [https://github.com/lobehub/lobe-chat/security/advisories/GHSA-m79r-r765-5f9j](https://github.com/lobehub/lobe-chat/security/advisories/GHSA-m79r-r765-5f9j)

## Related threats

- [LobeHub improper authorization in presigned file upload](https://junglewise.ai/threats/cve-2026-23835-lobehub-improper-authorization-in-presigned-file-upload)
- [Lobe Chat stored XSS in Mermaid artifact renderer escalating to RCE](https://junglewise.ai/threats/cve-2026-23733-lobe-chat-stored-xss-in-mermaid-artifact-renderer-escalating-to)
- [Lobe Chat IDOR in Knowledge Base file removal](https://junglewise.ai/threats/cve-2026-23522-lobe-chat-idor-in-knowledge-base-file-removal)
- [Lobe Chat server-side request forgery in web crawler](https://junglewise.ai/threats/cve-2025-62505-lobe-chat-server-side-request-forgery-in-web-crawler)
- [lobe-chat open redirect via X-Forwarded-Host header](https://junglewise.ai/threats/cve-2025-59426-lobe-chat-open-redirect-via-x-forwarded-host-header)
