# CVE-2025-59417: Lobe Chat Desktop Vulnerable to Remote Code Execution via XSS in Chat Messages

- Severity: Medium 6.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-18T14:38:55.012Z
- Modified: 2026-09-10T03:50:28.527Z
- Also known as: GHSA-m79r-r765-5f9j
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lobehub lobe-chat: < 1.129.4
- @lobehub/chat (npm): before 1.129.4
- lobehub lobe_chat: before 1.129.4

## Every score

- GitHub_M: CVSS:4.0 6.8 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/lobehub/lobe-chat/security/advisories/GHSA-m79r-r765-5f9j> (exploit, vendor-advisory, web)
- <https://github.com/lobehub/lobe-chat/commit/9f044edd07ce102fe9f4b2fb47c62191c36da05c> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59417> (advisory)
- <https://github.com/lobehub/lobe-chat> (package)
- <https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/apps/desktop/src/main/controllers/SystemCtr.ts#L65-L68> (web)
- <https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Conversation/components/MarkdownElements/LobeArtifact/index.ts#L7-L11> (web)
- <https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Conversation/components/MarkdownElements/LobeArtifact/rehypePlugin.ts#L50-L68> (web)
- <https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx#L67-L79> (web)
- <https://github.com/lobehub/lobe-chat/blob/0a1dcf943ea294e35acbe57d07f7974efede8e2e/src/features/Portal/Artifacts/Body/Renderer/index.tsx#L10-L32> (web)

## Sources

- CVE List: [CVE-2025-59417](https://www.cve.org/CVERecord?id=CVE-2025-59417), CVE Terms of Use, modified 2025-09-19
- GitHub Advisory Database: [GHSA-m79r-r765-5f9j](https://github.com/advisories/GHSA-m79r-r765-5f9j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-59417](https://nvd.nist.gov/vuln/detail/CVE-2025-59417), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59417 · Whole record: https://cve.day/CVE-2025-59417.json · Rebuilt by cve.day 2026-11-25T22:59:04.832Z
