CVE-2024-36422: GHSL-2023-232_GHSL-2023-234: Path injection, Cross-Site Scripting (XSS) and CORS misconfiguration in Flowise - CVE-2024-36420, CVE-2024-36421, CVE-2024-36422, CVE-2024-36423, CVE-2024-37145, CVE-2024-37146
Flowise is a drag & drop user interface to build a customized large language model flow. In version 1.4.3 of Flowise, a reflected cross-site scripting vulnerability occurs in the api/v1/chatflows/id endpoint. If the default configuration is used (unauthenticated), an attacker may be able to craft a specially crafted URL that injects Javascript into the user sessions, allowing the attacker to steal information, create false popups, or even redirect the user to other websites without interaction. If the chatflow ID is not found, its value is reflected in the 404 page, which has type text/html. This allows an attacker to attach arbitrary scripts to the page, allowing an attacker to steal sensitive information. This XSS may be chained with the path injection to allow an attacker without direct access to Flowise to read arbitrary files from the Flowise server. As of time of publication, no known patches are available.
Other sources
Flowise is vulnerable to path injection, cross site scripting and CORS misconfiguration vulnerabilities, that may compromise the confidentiality of the information on the host server. In the worst case, it may allow attackers to read files from the Flowise server and read/modify user secrets.
— GitHub Security Lab
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-36422?
CVE-2024-36422 is classified as a reflected cross-site scripting vulnerability, which can pose a significant security risk, especially in an unauthenticated context.
How do I fix CVE-2024-36422?
To fix CVE-2024-36422, it is recommended to implement proper input validation and context-aware output encoding to mitigate potential XSS risks.
What versions of Flowise are affected by CVE-2024-36422?
CVE-2024-36422 affects Flowise version 1.4.3.
Can CVE-2024-36422 be exploited without authentication?
Yes, CVE-2024-36422 can be exploited in the default configuration which does not require authentication.
What kind of attack can occur due to CVE-2024-36422?
CVE-2024-36422 could allow an attacker to execute arbitrary JavaScript in the context of a user's browser through reflected cross-site scripting.