CVE-2025-59417
JavaScript vulnerability analysis and mitigation

Overview

Lobe Chat, an open-source artificial intelligence chat framework, was found to contain a critical vulnerability (CVE-2025-59417) prior to version 1.129.4. The vulnerability involves a cross-site scripting (XSS) attack vector in the chat message handling system that could be escalated to remote code execution on the user's machine. The issue was discovered and disclosed on September 18, 2025, affecting all versions up to 1.129.3 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from improper handling of SVG content in the chat message renderer. When the lobeArtifact type is set to 'image/svg+xml', the SVGRender component uses dangerouslySetInnerHTML to render the content without proper sanitization. This implementation allows for arbitrary JavaScript execution through SVG payload injection. The vulnerability received a CVSS v4.0 score of 6.8 (Medium) with the vector string 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 Advisory).

Impact

The vulnerability enables attackers to achieve full remote code execution by injecting crafted chat messages. Any party capable of injecting content into chat messages, whether through hosting a malicious page for prompt injection, operating a compromised MCP server, or leveraging tool integrations, can exploit this vulnerability to execute arbitrary code on the user's machine (GitHub Advisory, Miggo).

Mitigation and workarounds

The vulnerability has been patched in version 1.129.4 through the implementation of SVG content sanitization using DOMPurify. The fix includes adding proper sanitization before rendering SVG content and implementing strict validation of external link handling (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-w5fx-fh39-j5rwHIGH8.6
  • JavaScriptJavaScript
  • @openai/codex
NoYesSep 19, 2025
CVE-2025-59417MEDIUM6.8
  • JavaScriptJavaScript
  • @lobehub/chat
NoYesSep 18, 2025
CVE-2025-59717MEDIUM5.4
  • JavaScriptJavaScript
  • @digitalocean/do-markdownit
NoNoSep 19, 2025
CVE-2025-10619MEDIUM5.3
  • JavaScriptJavaScript
  • @sequa-ai/sequa-mcp
NoYesSep 17, 2025
CVE-2025-59427LOW2.9
  • JavaScriptJavaScript
  • @cloudflare/vite-plugin
NoYesSep 19, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management