Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-59417: Lobe Chat cross-site scripting in chat messages via SVG artifacts

Identifier
CVE-2025-59417
Published
Record updated
View JSON
Affected
  • @lobehub/chat <= 1.129.3
Fixed in
1.129.4
  • released September 18, 2025, on the day of disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Lobe Chat versions prior to 1.129.4 contain a cross-site scripting flaw in chat message handling. When a server response includes a lobeArtifact tag with type image/svg+xml, the SVGRender component inserts the content through dangerouslySetInnerHTML, enabling XSS that can be escalated to remote code execution on the user's machine. Anyone able to inject content into chat messages, such as through a malicious page used for prompt injection, a compromised MCP server, or tool integrations, can exploit it.

Mitigation

Fixed in 1.129.4.