langgenius/dify
cpe:2.3:a:langgenius:dify:*:*:*:*:node.js:*:*
- latest
A stored cross-site scripting vulnerability has been identified in the latest version of Langgenius Dify. This issue arises from inadequate validation and sanitization of user input in SVG markdown support within the chatbot feature. An attacker can exploit this vulnerability by injecting malicious SVG content that executes arbitrary JavaScript code when an admin views it, potentially leading to credential theft.
Exploitation allows an attacker to execute JavaScript in the context of an admin user, with the potential to steal admin credentials.
To reproduce this vulnerability, inject SVG markup containing JavaScript payloads into a chatbot that supports SVG markdown. Once the SVG is rendered in the chatbot, the JavaScript will execute. For example, an SVG image tag can be used to trigger an 'onerror' event, executing JavaScript code such as an alert or a request to a server with stolen data.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.